Browse files

Add Tidelift information

  • Loading branch information...
brycekahle committed Jan 8, 2019
1 parent e9b7cfd commit 6f77e3c775eb8c6b853aa232ac5777797953b0dc
Showing with 20 additions and 21 deletions.
  1. +20 −21
@@ -4,6 +4,14 @@
[![npm version](]([![Build Status](]([![Dependencies](]([![Chat](](
[![BrowserStack Status](](

# Supporting SockJS

Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.

[Get supported sockjs-client with the Tidelift Subscription](

# Summary

SockJS is a browser JavaScript library that provides a WebSocket-like
object. SockJS gives you a coherent, cross-browser, Javascript API
which creates a low latency, full duplex, cross-domain communication
@@ -48,7 +56,7 @@ Subscribe to
[SockJS mailing list](!forum/sockjs) for
discussions and support.

SockJS family:
# SockJS family

* [SockJS-client]( JavaScript client library
* [SockJS-node]( Node.js server
@@ -75,8 +83,7 @@ Work in progress:
* [SockJS-go](
* []( - .NET port of the SockJS client

Getting Started
# Getting Started

SockJS mimics the [WebSockets API](,
but instead of `WebSocket` there is a `SockJS` Javascript object.
@@ -109,10 +116,9 @@ SockJS server. Here's a simple example:

SockJS-client API
# SockJS-client API

### SockJS class
## SockJS class

Similar to the 'WebSocket' API, the 'SockJS' constructor takes one, or more arguments:

@@ -162,8 +168,7 @@ bad practice. If you absolutely must do it, you can use
multiple subdomains, using a different subdomain for every
SockJS connection.

Supported transports, by browser (html served from http:// or https://)
# Supported transports, by browser (html served from http:// or https://)

_Browser_ | _Websockets_ | _Streaming_ | _Polling_
@@ -192,8 +197,7 @@ Konqueror | no | no | jsonp-polling
Websockets "hixie-76". They can still be enabled by manually
changing a browser setting.

Supported transports, by browser (html served from file://)
# Supported transports, by browser (html served from file://)

Sometimes you may want to serve your html from "file://" address - for
development or if you're using PhoneGap or similar technologies. But
@@ -207,8 +211,7 @@ _Browser_ | _Websockets_ | _Streaming_ | _Polling_
IE 8, 9 | same as above | iframe-htmlfile | iframe-xhr-polling
Other | same as above | iframe-eventsource | iframe-xhr-polling

Supported transports, by name
# Supported transports, by name

_Transport_ | _References_
@@ -239,8 +242,7 @@ jsonp-polling | Slow and old fashioned [JSONP polling][^6]. This transpor

Connecting to SockJS without the client
# Connecting to SockJS without the client

Although the main point of SockJS is to enable browser-to-server
connectivity, it is possible to connect to SockJS from an external
@@ -256,8 +258,7 @@ third party code or even a browser (though I don't know why you would
want to do so).

# Deployment

You should use a version of sockjs-client
that supports the protocol used by your server. For example:
@@ -272,8 +273,7 @@ session stickiness, take a look at the
[SockJS-node readme](

Development and testing
# Development and testing

SockJS-client needs [node.js]( for running a test
server and JavaScript minification. If you want to work on
@@ -293,7 +293,7 @@ To generate minified JavaScript, run:

Both commands output into the `build` directory.

### Testing
## Testing

Automated testing provided by:

@@ -306,8 +306,7 @@ pass all the tests.

This will start [karma]( and a test support server.

Browser Quirks
# Browser Quirks

There are various browser quirks which we don't intend to address:

0 comments on commit 6f77e3c

Please sign in to comment.