1.1.3 • Published 3 years ago

gfire-client v1.1.3

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

What does this do?

This project can be used to listen to realtime database changes from the gfire server. To see a usage example please view the social proofs server implementation.

What is is build with?

  • Typescript
  • Socket.io client

How do I get set up?

  • npm install gfire-client

Usage

import { GFireListener } from 'gfire-client';

const listener = new GFireListener({
    url: "...",
    auth: "...",
    env: "live | development", // Only works with live at the moment
    database: "...",
    table: "...",
    actions: ["insert", "update", "delete"] // Combination of these
}).valueChanges((val: any)=>{
    // Process table row change val
});

// Close connection when finished listening
listener.close();

Deployment

  • Make sure you are logged into the gwat npm account
  • Run npm run build
  • Use np to deploy updates

Contact

  • Harrison
  • Vahid (vahid@globalworkandtravel.com)
1.1.3

3 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago