@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@ms/websocket",
|
||||
"name": "@ccms/websocket",
|
||||
"version": "0.5.0",
|
||||
"description": "MiaoScript websocket package",
|
||||
"keywords": [
|
||||
@ -12,9 +12,6 @@
|
||||
"homepage": "https://github.com/circlecloud/ms.git",
|
||||
"license": "ISC",
|
||||
"main": "dist/index.js",
|
||||
"publishConfig": {
|
||||
"registry": "https://repo.yumc.pw/repository/npm-hosted/"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf dist",
|
||||
"watch": "tsc --watch",
|
||||
@ -27,6 +24,6 @@
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ms/nashorn": "^0.5.0"
|
||||
"@ccms/nashorn": "^0.5.0"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
/// <reference types="@ms/nashorn" />
|
||||
/// <reference types="@ccms/nashorn" />
|
||||
|
||||
import { Server, ServerOptions } from './socket-io'
|
||||
|
||||
@ -41,6 +41,6 @@ type SocketStatic = SocketIOStatic & { Instance?: symbol }
|
||||
let io: SocketStatic = function (pipeline: any, options: ServerOptions) {
|
||||
return new Server(pipeline, options)
|
||||
}
|
||||
io.Instance = Symbol("@ms/websocket")
|
||||
io.Instance = Symbol("@ccms/websocket")
|
||||
export default io
|
||||
export * from './socket-io'
|
||||
|
Reference in New Issue
Block a user