core/lib/tern_from_ts/defs/socketty.json
2017-05-14 13:22:31 +02:00

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"
}