Change Log
4.0.8 (2018/09/05)
- Non ASCII UTF8 characters are correctly received now, fixes: #46. Thanks Aleksandar Ivanov.
4.0.7 (2018/07/12)
- Fix - an issue in reconnection in some cases.
4.0.6 (2018/05/26)
4.0.5
- Ignore - incomplete release
4.0.4 (2018/05/22)
- GWT Compatibility, fixes #38
4.0.3 (2018/05/09)
- Add to Bower, fixes #26
- Several documentation cleanup, fixes #27
- Updated typescript definitions, Thanks Jimi Charalampidis. See: #33
- I need to be more disciplined. Caught up on ChangeLog updates :)
4.0.2 (2018/02/23)
- Dockerfile for RabbitMQ. Thanks Dillon Sellars. See: #22
- Add closeEventCallback to expose the websocket CloseEvent. Thanks Dillon Sellars. See: #23
- Cleanup disconnect code, fixes #21
4.0.1 (2018/01/29)
- Fixes #20
4.0.0 (2017/11/09)
- NodeJS has been upgraded to first class citizen. Dropped legacy support.
- Major version change as this version is not backward compatible.
3.1.2 (2017/11/04)
- Header value escaping as per STOMP 1.2 standard.
3.1.0 (2017/07/05)
- Updated tests to QUint latest version. Now using same set of tests for NodeJS environment.
- Pruned files and folders no longer needed.
- Updated dependencies.
- Updated build scripts.
- Refactored entire documentation.
- Enabled Travis CI (it runs all test cases using NodeJS).
- Documentation is hosted at GitHub pages.
- Updated TypeScript type definitions.
2.5.1 (2017/03/28)
- Added typescript definitions. Thanks Jimi Charalampidis (https://github.com/jimic)
- Published on npmjs.com.
2.5.0 (2017/02/15)
- Support for auto reconnect
- Minor documentation changes
2.4.9 (2016/04/01)
STOMP 1.2 and RabbitMQ support
- deletion of durable subscriptions
- STOMP 1.2 ack/nack headers
- graceful shutdown
API change
the
unsubscribe()
method returned bysubscribe()
now takes an optionalheaders
argument which can be used to pass headers likedurable:true
andauto-delete:false
required by RabbitMQ to delete durable subscriptionsfor STOMP 1.2,
ack()
andnack()
methods send anid
header rather than amessage-id
header to match the incoming MESSAGE frame.although the
disconnectCallback
is still called immediately after transmitting a DISCONNECT frame, the websocket is not closed by the client until a RECEIPT is received. Note that due to server-side behaviour with respect to connection lingering the RECEIPT may never be received and the socket will be closed by the server.2.0 (2012/11/29)
STOMP 1.1 support
- heart-beat
- nack
- content-length
API change
the
errorCallback
passed to theconnect()
method is no longer called when the client is properly disconnected by callingdisconnect()
.ack() method takes 3 parameters:
messageID
&subscription
are MANDATORY.headers
is OPTIONAL
the
client
object has aheartbeat
field which can be used to configure heart-beating by changing itsincoming
andoutgoing
integer fields (default value for both is 10000ms):client.heartbeat.outgoing = 20000 // client will send heartbeats every 20000ms client.heartbeat.incoming = 0 // client does not want to receive heartbeats
// from the server
Minified version
In addition to the regular stomp.js
file, the library is also available in a minified version stomp.min.js
Annotated source
The source is now documented :)