browser library

Transport for the browser.

Before instantiating any of the transport classes, the transport platform should be configured. For simple use cases, use configureWTransportForBrowser:

import 'package:w_transport/browser.dart'
    show configureWTransportForBrowser;

void main() {
  configureWTransportForBrowser();
}

This is equivalent to:

globalTransportPlatform = browserTransportPlatform;

Or, if you'd like to use SockJS for WebSocket transports:

globalTransportPlatform = browserTransportPlatformWithSockJS;

You may also build your own configurations.

Functions

configureWTransportForBrowser() → void
Configures w_transport for use in the browser via dart:html.

Exceptions / Errors

MissingSockJSException