1.8.3 • Published 5 years ago

jsonql-ws-server v1.8.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

jsonql-ws-server

Setup WebSocket server for the jsonql to run on the same host, automatic generate public / private channel using contract

This is not mean to use as standalone server (although you can)

This is included as optional dependencies as one of the following module:

  • @jsonql/koa complete Node server side setup with Koa
  • @jsonql/express (in development)

Please check our main documentation site at jsonql.org for further information

Note

The module can work as a standalone WebSocket server.

const http = require('http')
const fsx = require('fs-extra')
const { jsonqlWsServer } = require('jsonql-ws-server')
const server = http.createServer()
// when using this as standalone, you need to include the contract from somewhere
const config = {
  contract: fsx.readJsonSync('path/to/public.json')
}
// init
jsonqlWsServer(config, server)
  .then(() => {
    // start up the server
    server.listen(PORT)
  })

But this is not recommended.


NEWBRAN LTD UK

TO1SOURCE CHINA

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.13

5 years ago

1.7.12

5 years ago

1.7.11

5 years ago

1.7.10

5 years ago

1.7.9

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.4

5 years ago

1.6.3

5 years ago

1.6.2

5 years ago

1.6.0

5 years ago

1.5.3

5 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.11

6 years ago

1.4.10

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago

1.0.0-alpha.1

6 years ago