@rpcbase/server 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,8 +1,10 @@
1
1
  /* @flow */
2
2
  const rpc_router = require("./rpc/rpc_router")
3
3
  const client_router = require("./client/client_router")
4
+ const sockets = require("./realtime-state/sockets")
4
5
 
5
6
  module.exports = {
6
7
  rpc_router,
7
8
  client_router,
9
+ sockets,
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -13,7 +13,8 @@
13
13
  "connect-redis": "6.0.0",
14
14
  "dotenv": "10.0.0",
15
15
  "glob": "7.2.0",
16
- "redis": "3.1.2",
17
- "yargs": "17.3.0"
16
+ "redis": "4.0.1",
17
+ "socket.io": "4.4.0",
18
+ "yargs": "17.3.1"
18
19
  }
19
20
  }
@@ -0,0 +1,8 @@
1
+ /* @flow */
2
+
3
+ const init_sockets = async(app) => {
4
+ console.log("ici init sockets")
5
+ }
6
+
7
+
8
+ module.exports = init_sockets