tp_sockjs_client_wrapper version: 1.1.11

Published 2024-03-27

n/a

sdk | dart
repository | svn
platform | n/a
status | deprecated
  • Readme
  • Changelog
  • Versions

SockJS Client Wrapper

A Dart wrapper around the SockJS Client. Uses the js Dart package to interop with the JS lib.

Usage

Include the SockJS library in your app's index.html prior to the main Dart/JS script:

<!DOCTYPE html>
<html>
  <head> ... </head>
  <body>
    <!-- For local dev/debugging, use the unminified version: -->
    <script src="/packages/sockjs_client_wrapper/sockjs.js"></script>

    <!-- In production, use the minified version:  -->
    <script src="/packages/sockjs_client_wrapper/sockjs_prod.js"></script>
  </body>
</html>

Import package:sockjs_client_wrapper/sockjs_client_wrapper.dart and create a SockJSClient instance that will connect to a SockJS server:

import 'package:sockjs_client_wrapper/sockjs_client_wrapper.dart';

Future<Null> main() async {
  final client = new SockJSClient(Uri.parse('ws://localhost:9000/echo'));
  await client.onOpen.first;
  client.send('Hello!');
  ...
}

Development

Install dependencies

$ npm install
$ dart pub get

Run the example

$ dart run dart_dev serve

Run tests

$ dart run dart_dev test

Changelog

1.1.11 - 2024-03-27

Changed

  • Version bump from 1.1.10 to 1.1.11 (Deprecated this package).

1.1.10 - 2024-02-01

Changed

  • Version bump from 1.1.9 to 1.1.10 (Resolve package version confusions).

1.1.9 - 2023-05-22

Changed

  • Version bump from 1.1.8 to 1.1.9.

1.1.8 - 2023-02-09

Changed

  • Version bump from 1.1.7 to 1.1.8 (Version confusion after compiler bug chaos).

1.1.7 - 2023-01-31

Changed

  • Version bump from 1.1.6 to 1.1.7.

1.1.6 - 2022-12-22

Changed

  • Version bump from 1.1.5 to 1.1.6.

1.1.5 - 2022-12-22

Changed

  • Version bump from 1.1.4 to 1.1.5 (Recompile due to installer optimizations).

1.1.4 - 2022-10-11

Changed

  • Version bump from 1.1.3 to 1.1.4 (Recompile due to wrong GetIt.instance syntax.).

1.1.3 - 2022-10-05

Changed

  • Version bump from 1.1.2 to 1.1.3 (fixed pdflib searchpath macos crash).

1.1.2 - 2022-10-01

Changed

  • Version bump from 1.1.1 to 1.1.2 (pkg_pdflib bundle macos dylib).

1.1.1 - 2022-09-29

Changed

  • Version bump from 1.1.0 to 1.1.1 (dependencies upgraded).

1.1.0 - 2022-01-01

Changed

  • Update SockJS library to 1.5.0 and add sourcemaps.

1.0.14 - 2022-01-01

Changed

  • Raise Dart SDK minimum to 2.4.0

1.0.13 - 2022-01-01

Changed

  • Internal changes and CI updates.

1.0.5 - 2022-01-01

Changed

  • Dart 2 compatible.

1.0.4 - 2022-01-01

Changed

  • Updated the SockJS library to v1.1.5 to pull in a fix for an issue where xhr_streaming loops infinitely after the connection closes.

1.0.3 - 2022-01-01

Changed

  • Compatible with latest Dart 2.x dev channel and Dart Dev Compiler.

1.0.2 - 2022-01-01

Changed

  • Logging was disabled as it was originally too verbose.

1.0.1 - 2022-01-01

Changed

  • Add a version check to CI.

1.0.0 - 2022-01-01

Changed

  • Initial release.

1.1.11

2024-03-27 download

1.1.10

2024-02-01 download

1.1.9

2023-05-22 download

1.1.8

2023-02-09 download

1.1.7

2023-01-31 download

1.1.6

2022-12-22 download

1.1.5

2022-12-22 download

1.1.4

2022-10-11 download

1.1.3

2022-10-05 download

1.1.2

2022-10-01 download

1.1.1

2022-09-29 download

1.1.0

2022-01-01 download