WebsocketClient class
A client to connect to the coinbase exchange websocket feed.
Constructors
- WebsocketClient({bool sandbox = false})
Properties
Methods
-
close(
) → Future< void> - Close a connection to a channel.
-
connect(
) → void - Connect to a channel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
{List< ChannelEnum> ? channels, List<String> ? productIds, Map<ChannelEnum, List< ? channelProductIdMap}) → Stream<String> ?>WebsocketResponse> - Subscribe to specific channels.
-
toString(
) → String -
A string representation of this object.
inherited
-
unSubscribe(
{List< ChannelEnum> ? channels, List<String> ? productIds, Map<ChannelEnum, List< ? channelProductIdMap}) → Stream<String> ?>WebsocketResponse> - Unsubscribe to specific channels
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- sandboxWebSocketAuthority → const String
- webSocketAuthority → const String