Getting started
SugoiJS socket module, based on socket.io package

Installation

Using @sugoi/cli

Check the get started section!

Manually

npm install --save @sugoi/socket

tsconfig.json:

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:
1
{
2
"compilerOptions": {
3
"baseUrl": "./src",
4
"allowJs": true,
5
"target": "es2015",
6
"module": "commonjs",
7
"moduleResolution": "node",
8
"sourceMap": true,
9
"emitDecoratorMetadata": true,
10
"experimentalDecorators": true,
11
"lib": [
12
"es2015",
13
"dom"
14
],
15
"typeRoots": [
16
"./node_modules/@types"
17
],
18
"types": [
19
"body-parser",
20
"express",
21
"node"
22
]
23
}
24
}
Copied!
Last modified 2yr ago