1.8.3 • Published 4 years ago

jsonql-ws-server v1.8.3

Weekly downloads
1
License
MIT
Repository
-
Last release
4 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

4 years ago

1.8.2

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.13

4 years ago

1.7.12

4 years ago

1.7.11

4 years ago

1.7.10

4 years ago

1.7.9

4 years ago

1.7.8

4 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.0

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.11

4 years ago

1.4.10

4 years ago

1.4.9

4 years ago

1.4.8

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago

1.0.0-alpha.1

5 years ago