WebSocketRpcConnection getConnection()
Get the RPC connection of the required service or the RPC server of the provided service.
Return value
If type is Service.REQUIRED, an instance of the WebSocketRpcConnection class or null is returned.
If type is Service.PROVIDED, an instance of the WebSocketRpcServer class or null is returned.