Permalink
Browse files

Use sockjs-client 0.3, not 0.2

  • Loading branch information...
1 parent bdb7fb9 commit ba4abd17a515ac65cc0165a3d1947839597c91c6 @majek majek committed Apr 2, 2012
View
@@ -87,7 +87,7 @@ Where `options` is a hash which can contain:
domain local to the SockJS server. This iframe also does need to
load SockJS javascript client library, and this option lets you specify
its url (if you're unsure, point it to
- <a href="http://cdn.sockjs.org/sockjs-0.2.min.js">
+ <a href="http://cdn.sockjs.org/sockjs-0.3.min.js">
the latest minified SockJS client release</a>, this is the default).
You must explicitly specify this url on the server side for security
reasons - we don't want the possibility of running any foreign
@@ -286,7 +286,7 @@ Connecting to SockJS-node without the client
Although the main point of SockJS it to enable browser-to-server
connectivity, it is possible to connect to SockJS from an external
-application. Any SockJS server complying with 0.2 protocol does
+application. Any SockJS server complying with 0.3 protocol does
support a raw WebSocket url. The raw WebSocket url for the test server
looks like:
@@ -368,7 +368,7 @@ To run it run something like:
cd sockjs-protocol
make test_deps
- ./venv/bin/python sockjs-protocol-0.2.py
+ ./venv/bin/python sockjs-protocol-0.3.py
For details see
[SockJS-protocol README](https://github.com/sockjs/sockjs-protocol#readme).
View
@@ -1,7 +1,7 @@
<!doctype html>
<html><head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="http://cdn.sockjs.org/sockjs-0.2.min.js"></script>
+ <script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
<style>
.box {
width: 300px;
View
@@ -3,7 +3,7 @@ var sockjs = require('sockjs');
var node_static = require('node-static');
// 1. Echo sockjs server
-var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.2.min.js"};
+var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.3.min.js"};
var sockjs_echo = sockjs.createServer(sockjs_opts);
sockjs_echo.on('connection', function(conn) {
@@ -1,7 +1,7 @@
<!doctype html>
<html><head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="http://cdn.sockjs.org/sockjs-0.2.min.js"></script>
+ <script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
<style>
.box {
width: 300px;
@@ -2,7 +2,7 @@ var express = require('express');
var sockjs = require('sockjs');
// 1. Echo sockjs server
-var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.2.min.js"};
+var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.3.min.js"};
var sockjs_echo = sockjs.createServer(sockjs_opts);
sockjs_echo.on('connection', function(conn) {
@@ -1,7 +1,7 @@
<!doctype html>
<html><head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="http://cdn.sockjs.org/sockjs-0.2.min.js"></script>
+ <script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script>
<script src="http://cdn.sockjs.org/websocket-multiplex-0.1.js"></script>
<style>
.box {
@@ -82,7 +82,7 @@
var sockjs_url = '/multiplex';
var sockjs = new SockJS(sockjs_url);
- var multiplexer = new WebSocketMultiplex(sockjs);
+ var multiplexer = new WebSocketMultiplexu(sockjs);
var ann = multiplexer.channel('ann');
var bob = multiplexer.channel('bob');
var carl = multiplexer.channel('carl');
@@ -5,7 +5,7 @@ var websocket_multiplex = require('websocket-multiplex');
// 1. Setup SockJS server
-var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.2.min.js"};
+var sockjs_opts = {sockjs_url: "http://cdn.sockjs.org/sockjs-0.3.min.js"};
var service = sockjs.createServer(sockjs_opts);

0 comments on commit ba4abd1

Please sign in to comment.