-
-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved some classes from common to server to support WS lifecycle call…
…backs
- Loading branch information
Showing
10 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
server/src/main/java/org/red5/server/api/websocket/IWebSocketAwareHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.red5.server.api.websocket; | ||
|
||
import org.red5.net.websocket.WebSocketConnection; | ||
|
||
/** | ||
* Interface for handlers that are aware of the WebSocketConnection. | ||
* | ||
* @author Paul Gregoire | ||
*/ | ||
public interface IWebSocketAwareHandler { | ||
|
||
/** | ||
* Handler method. Called when a WebSocket connects to the application. | ||
* | ||
* @param conn | ||
* WebSocket connection object | ||
* @param params | ||
* List of parameters after connection URL | ||
* @return true upon success, false otherwise | ||
*/ | ||
boolean appConnect(WebSocketConnection wsConn, Object[] params); | ||
|
||
/** | ||
* Handler method. Called when a WebSocket disconnects from the application. | ||
* | ||
* @param conn | ||
* WebSocket connection object | ||
* @return true upon success, false otherwise | ||
*/ | ||
boolean appDisconnect(WebSocketConnection conn); | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.