Modifier and Type | Field and Description |
---|---|
protected org.jboss.netty.channel.Channel |
channel |
Constructor and Description |
---|
DefaultWOWebSocket(org.jboss.netty.channel.Channel channel) |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.channel.Channel |
channel() |
void |
didClose()
Method to be called on the WebSocket when its channel is closed.
|
void |
didUpgrade()
Called after returning the upgrade response to the client
|
void |
init(WOSession session)
Danger! Do NOT stash an instance of the session on your websocket.
|
void |
receive(byte[] message) |
void |
receive(String message) |
void |
receiveFrame(org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame frame)
Handles WebSocketFrames received by this socket's channel
|
void |
send(byte[] message) |
void |
send(String message) |
void |
sendFrame(org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame frame)
Method used to write WebSocketFrames to this socket's channel
|
public DefaultWOWebSocket(org.jboss.netty.channel.Channel channel)
public org.jboss.netty.channel.Channel channel()
public void didClose()
WebSocket
public void didUpgrade()
WebSocket
didUpgrade
in interface WebSocket
public void init(WOSession session)
session
- public void receiveFrame(org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame frame)
WebSocket
receiveFrame
in interface WebSocket
frame
- the WebSocketFrame receivedpublic void sendFrame(org.jboss.netty.handler.codec.http.websocketx.WebSocketFrame frame)
WebSocket
public void receive(String message)
public void receive(byte[] message)
public void send(String message)
public void send(byte[] message)
Copyright © 2002 – 2024 Project Wonder.