SugoiJS socket module, based on socket.io package
Check the get started section!
npm install --save @sugoi/socket
Under your tsconfig - compilerOptions set:
"target": "es2015"
"emitDecoratorMetadata": true
"experimentalDecorators": true
"lib": ["es2015","dom"]
Template
You are able to use the config template which was set for the @sugoi/demo application:
{"compilerOptions": {"baseUrl": "./src","allowJs": true,"target": "es2015","module": "commonjs","moduleResolution": "node","sourceMap": true,"emitDecoratorMetadata": true,"experimentalDecorators": true,"lib": ["es2015","dom"],"typeRoots": ["./node_modules/@types"],"types": ["body-parser","express","node"]}}