Package org.java_websocket
Interface WebSocketFactory
-
- All Known Subinterfaces:
WebSocketServerFactory
- All Known Implementing Classes:
CustomSSLWebSocketServerFactory
,DefaultSSLWebSocketServerFactory
,DefaultWebSocketServerFactory
public interface WebSocketFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebSocket
createWebSocket(WebSocketAdapter a, List<Draft> drafts)
Create a new Websocket with the provided listener, drafts and socketWebSocket
createWebSocket(WebSocketAdapter a, Draft d)
Create a new Websocket with the provided listener, drafts and socket
-
-
-
Method Detail
-
createWebSocket
WebSocket createWebSocket(WebSocketAdapter a, Draft d)
Create a new Websocket with the provided listener, drafts and socket- Parameters:
a
- The Listener for the WebsocketImpld
- The draft which should be used- Returns:
- A WebsocketImpl
-
createWebSocket
WebSocket createWebSocket(WebSocketAdapter a, List<Draft> drafts)
Create a new Websocket with the provided listener, drafts and socket- Parameters:
a
- The Listener for the WebsocketImpldrafts
- The drafts which should be used- Returns:
- A WebsocketImpl
-
-