Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
socket_io
master
SocketIO
Base
WebSocket
Built with Crystal 1.9.2
2023-10-07 15:37:33 UTC
class
SocketIO::WebSocket
SocketIO::WebSocket
Reference
Object
Defined in:
socket_io/websocket.cr
Constructors
.new
(socket : HTTP::WebSocket, handler : SocketIO::Base)
Instance Method Summary
#emit
(name : String | Symbol, message : NamedTuple)
#on
(name : String, &action : JSON::Any -> Void)
Constructor Detail
def self.
new
(socket : HTTP::WebSocket, handler :
SocketIO::Base
)
#
[
View source
]
Instance Method Detail
def
emit
(name : String | Symbol, message : NamedTuple)
#
[
View source
]
def
on
(name : String, &action : JSON::Any -> Void)
#
[
View source
]