public class Hybi13Socket extends AbstractWebSocket
closingStrategy, inputStream, outputStream, webSocketId
Constructor and Description |
---|
Hybi13Socket(InputStream inputStream,
OutputStream outputStream,
ClosingStrategy closingStrategy) |
Modifier and Type | Method and Description |
---|---|
byte[] |
_readBinaryFrame() |
static OioWebSocket |
from(HttpRequestBridge request,
HttpResponseBridge response,
ClosingStrategy closingStrategy) |
static void |
main(String[] args) |
Frame |
readFrame()
Read a single frame from the socket.
|
void |
writeFrame(Frame frame)
Write a frame to the socket.
|
closeSocket, getSocketID
public Hybi13Socket(InputStream inputStream, OutputStream outputStream, ClosingStrategy closingStrategy)
public static OioWebSocket from(HttpRequestBridge request, HttpResponseBridge response, ClosingStrategy closingStrategy) throws IOException
IOException
public byte[] _readBinaryFrame() throws IOException
IOException
public Frame readFrame() throws IOException
OioWebSocket
Frame
IOException
public void writeFrame(Frame frame) throws IOException
OioWebSocket
frame
- the @{link Frame} instance to write to the socket.IOException
public static void main(String[] args)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.