File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 41
41
"homepage" : " https://cocreate.app/docs/CoCreate-socket-server" ,
42
42
"dependencies" : {
43
43
"@cocreate/cli" : " ^1.33.8" ,
44
+ "@cocreate/config" : " ^1.0.0" ,
44
45
"@cocreate/uuid" : " ^1.4.26" ,
45
46
"ws" : " 7.5.9"
46
47
}
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ const WebSocket = require('ws');
2
2
const url = require ( "url" ) ;
3
3
const EventEmitter = require ( "events" ) . EventEmitter ;
4
4
const uid = require ( '@cocreate/uuid' )
5
- const { config } = require ( '@cocreate/cli ' )
5
+ const config = require ( '@cocreate/config ' )
6
6
7
7
class SocketServer extends EventEmitter {
8
8
constructor ( server , prefix ) {
9
9
super ( ) ;
10
10
this . clients = new Map ( ) ;
11
11
this . prefix = prefix || "crud" ;
12
- config ( { key : 'organization_id' , prompt : 'Enter your organization_id: ' } )
12
+ config ( { organization_id : { prompt : 'Enter your organization_id: ' } } )
13
13
14
14
this . wss = new WebSocket . Server ( { noServer : true } ) ;
15
15
this . wss . on ( 'headers' , ( headers , request ) => {
You can’t perform that action at this time.
0 commit comments