Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class WebSocketServer

Hierarchy

java.lang.Object
     org.java_websocket.server.WebSocketServer

Package
com.smartdevicelink.transport
All Implemented Interfaces
com.smartdevicelink.transport.TransportInterface

Constructors

WebSocketServer( WebSocketServerConfig config, TransportCallback callback )

public WebSocketServer(WebSocketServerConfig config,TransportCallback callback)

Parameters

config
callback

Methods

getTransportRecord()

public com.smartdevicelink.transport.utl.TransportRecord getTransportRecord()

stop()

public void stop()

write( SdlPacket packet )

public void write(SdlPacket packet)

Parameters

packet

setCallback( TransportCallback callback )

public void setCallback(TransportCallback callback)

Parameters

callback

onOpen( WebSocket webSocket, ClientHandshake clientHandshake )

public void onOpen(WebSocket webSocket,ClientHandshake clientHandshake)

Parameters

webSocket
clientHandshake

onClose( WebSocket webSocket, int i, String s, boolean b )

public void onClose(WebSocket webSocket,int i,String s,boolean b)

Parameters

webSocket
i
s
b

onWebsocketCloseInitiated( WebSocket conn, int code, String reason )

public void onWebsocketCloseInitiated(WebSocket conn,int code,String reason)

Parameters

conn
code
reason

onMessage( WebSocket webSocket, String s )

public void onMessage(WebSocket webSocket,String s)

Parameters

webSocket
s

onMessage( WebSocket conn, ByteBuffer message )

public void onMessage(WebSocket conn,ByteBuffer message)

Parameters

conn
message

onError( WebSocket webSocket, Exception e )

public void onError(WebSocket webSocket,Exception e)

Parameters

webSocket
e

onStart()

public void onStart()

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section