Package playn.core
Interface Net.WebSocket
- Enclosing class:
Net
public static interface Net.WebSocket
Encapsulates a web socket.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Notifies game of web socket events. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Requests that this web socket be closed.void
Queues the supplied text message to be sent over the socket.void
send
(ByteBuffer data) Queues the supplied binary message to be sent over the socket.
-
Method Details
-
close
void close()Requests that this web socket be closed. This will result in a call toNet.WebSocket.Listener.onClose()
when the socket closure is completed. -
send
Queues the supplied text message to be sent over the socket. -
send
Queues the supplied binary message to be sent over the socket.
-