mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
18 lines
509 B
JSON
18 lines
509 B
JSON
{
|
|
"socketty": "Socketty",
|
|
"'socketty'": "socketty",
|
|
"Socketty": {
|
|
"connect": "fn(url: string, callback: fn(socket: SockettySocket)) -> SockettySocket",
|
|
"createServer": "fn(httpServer: ?) -> SockettyServer"
|
|
},
|
|
"SockettySocket": {
|
|
"on": "fn(action: string, callback: fn(message?: ?))",
|
|
"send": "fn(action: string, message?: ?)",
|
|
"disconnect": "fn(callback: fn())"
|
|
},
|
|
"SockettyServer": {
|
|
"connection": "fn(callback: fn(socket: SockettySocket))"
|
|
},
|
|
"!name": "socketty"
|
|
}
|