stompts
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

StompTS

As now, this is JUST a little experiment.

The original source was in coffeescript transpiled into javascript.

This is manual port of it, starting with the javascript version.

How to use (work in progress)

    import * as stomp from 'stompts';

    // ...

    var client = new stomp.Client('ws://localhost:15674/ws');
    client.connect(
      {
        login: 'guest',
        passcode: 'guest'
      },
      (frame) => {
        console.log(`connected: ${frame}`);
        this.client.subscribe('/topic/test.#', (f) => {
          console.log(f);
        });
      }
    );

The original

https://github.com/jmesnil/stomp-websocket

/*
   Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
   Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
   Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
 */

Stomp Documentation

http://jmesnil.net/stomp-websocket/doc/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.8
    1
    • latest

Version History

Package Sidebar

Install

npm i stompts

Weekly Downloads

0

Version

0.0.8

License

Apache-2.0

Unpacked Size

18.6 kB

Total Files

6

Last publish

Collaborators

  • crochik