WebSocketMaker class

Creates a WebSocketChannel from a URL or a ChannelGenerator.

Constructors

WebSocketMaker.generator(ChannelGenerator generator)
A generator that will be used to create the WebSocketChannel.
const
WebSocketMaker.url(FutureOr<String> url())
A function that returns the URL of the GraphQL server. Will be used to create the WebSocketChannel.
const

Properties

generator ChannelGenerator?
A generator that will be used to create the WebSocketChannel.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url → (FutureOr<String> Function()?)
A function that returns the URL of the GraphQL server. Will be used to create the WebSocketChannel.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited