borisyankov/DefinitelyTyped — pull request #3206 by matthewoates (2014-11-22 23:42:52+00:00)
Title: SockJS can be instantiated with just a URL

see: https://github.com/sockjs/sockjs-client

example copied from their README:
```
var sock = new SockJS('http://mydomain.com/my_prefix');
sock.onopen = function() {
console.log('open');
};
sock.onmessage = function(e) {
console.log('message', e.data);
};
sock.onclose = function() {
console.log('close');
};

sock.send('test');
sock.close();
```