matt
490f118b57
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();
```
2014-11-22 15:39:54 -08:00
Bart van der Schoor
1d345f6c14
cleaned-up headers
2014-06-18 23:31:11 +02:00
Phil McCloghry-Laing
edadb4b09b
Update for SockJS definition to fix constructor arguments
2014-06-17 10:54:54 +10:00
Boris Yankov
dd35f69637
Big replacement: bool with boolean
2013-08-07 16:59:39 +03:00
Boris Yankov
c98eebb137
Rename all definition files, remove versions
2013-01-17 17:17:27 +02:00
Emil Ivanov
e30a04c0b1
Added comment headers and version
2012-12-12 11:02:44 +02:00
Emil Ivanov
55146899fc
Added SockJS definition
...
See https://github.com/sockjs/sockjs-client
Created manually by inspecting the various parameters
and return values.
There are seperate events, since, although SockJS
exposes a Websocket-like interface, it's not 100% same.
2012-12-12 10:58:28 +02:00