SocketEngineWebsocket
public protocol SocketEngineWebsocket : SocketEngineSpec
Protocol that is used to implement socket.io WebSocket support
-
sendWebSocketMessage(_:withType:withData:completion:)Default implementationSends an engine.io message through the WebSocket transport.
You shouldn’t call this directly, instead call the
writemethod onSocketEngine.Default Implementation
Sends an engine.io message through the WebSocket transport.
You shouldn’t call this directly, instead call the
writemethod onSocketEngine.Declaration
Swift
func sendWebSocketMessage(_ str: String,Parameters
messageThe message to send.
withTypeThe type of message to send.
withDataThe data associated with this message.
completionCallback called on transport write completion.
SocketEngineWebsocket Protocol Reference