Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Workiva/sockjs-dart-client

Repository files navigation

SockJS Client

This is a Dart client library for SockJS. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.

Under the hood SockJS tries to use native WebSockets first. If that fails it can use a variety of browser-specific transport protocols and presents them through WebSocket-like abstractions.

SockJS is intended to work for all modern browsers and in environments which don't support WebSocket protocol, for example behind restrictive corporate proxies.

Development

Dependencies

$ pub get && npm install

Tests

Dart 1:
-------

Run unit tests:

    $ pub run test

Run integration tests:

    $ node tool/server.js
    $ pub run test -P integration


Dart 2:
-------

Run unit tests:

    $ pub run build_runner test

Run integration tests:

    $ node tool/server.js
    $ pub run build_runner test -- -P integration

About

A Dart client library for SockJS.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors