Top Methods
org.java_websocket

public Interface WebSocketFactory

Known Direct Subinterfaces
org.java_websocket.WebSocketServerFactory
Imports
java.util.List, org.java_websocket.drafts.Draft

Method Summary

Modifier and TypeMethod and Description
public WebSocket

Returns:

A WebsocketImpl
createWebSocket
(WebSocketAdapter
The Listener for the WebsocketImpl
a
,
Draft
The draft which should be used
d
)

Create a new Websocket with the provided listener, drafts and socket

public WebSocket

Returns:

A WebsocketImpl
createWebSocket
(WebSocketAdapter
The Listener for the WebsocketImpl
a
,
List<Draft>
The drafts which should be used
drafts
)

Create a new Websocket with the provided listener, drafts and socket

Method Detail

createWebSocketback to summary
public WebSocket createWebSocket(WebSocketAdapter a, Draft d)

Create a new Websocket with the provided listener, drafts and socket

Parameters
a:WebSocketAdapter

The Listener for the WebsocketImpl

d:Draft

The draft which should be used

Returns:WebSocket

A WebsocketImpl

createWebSocketback to summary
public WebSocket createWebSocket(WebSocketAdapter a, List<Draft> drafts)

Create a new Websocket with the provided listener, drafts and socket

Parameters
a:WebSocketAdapter

The Listener for the WebsocketImpl

drafts:List<Draft>

The drafts which should be used

Returns:WebSocket

A WebsocketImpl