Package dev.arbjerg.lavalink.api
Interface WebSocketExtension
public interface WebSocketExtension
When added as a bean, adds an operation to the WebSocket API that clients can invoke.
-
Method Summary
Modifier and Type Method Description java.lang.StringgetOpName()voidonInvocation(ISocketContext context, org.json.JSONObject message)Hook for receiving messages
-
Method Details
-
getOpName
java.lang.String getOpName()- Returns:
- the "op" value to be sent by clients
-
onInvocation
Hook for receiving messages- Parameters:
context- the WebSocketmessage- the entire JSON message received
-