SolanaMobileWebSocketConnection constructor
SolanaMobileWebSocketConnection({})
An abstraction over a SolanaMobileWebSocket to map web socket requests to their responses.
Implementation
SolanaMobileWebSocketConnection({
final int? maxAttempts,
final List<int>? backoffSchedule = const [],
final Iterable<String>? protocols,
}) {
socket = SolanaMobileWebSocket(
maxAttempts: maxAttempts,
backoffSchedule: backoffSchedule,
protocols: protocols,
)..listen(
onConnect: _onWebSocketConnect,
);
}