subscribe method

IOWebSocketChannel subscribe(
  1. String channel
)

Helper function to subscribe to any websocket stream from Binance API

Implementation

IOWebSocketChannel subscribe(String channel) => IOWebSocketChannel.connect(
      '$wsEndpoint/ws/$channel',
      pingInterval: const Duration(minutes: 5),
    );