Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit baeb628

Browse files
author
David Chelimsky
committed
bump to 0.0.2
1 parent 283e44c commit baeb628

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 0.0.2
2+
3+
* Support multiple websocket connections from one html page by ensuring that
4+
each gets its own settings.

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ but no activity in the code since 2010.
4343
<script src="http://www.google.com/jsapi"></script>
4444
<script>google.load("jquery", "1.3")</script>
4545
<script src="http://jquery-json.googlecode.com/files/jquery.json-2.2.min.js"></script>
46-
<script src="https://raw.github.com/dchelimsky/jquery-websocket/v0.0.1/jquery.websocket.js"></script>
46+
<script src="https://raw.github.com/dchelimsky/jquery-websocket/v0.0.2/jquery.websocket.js"></script>
4747
<script>
48-
var ws = $.websocket("ws://127.0.0.1:8080/", {
49-
events: {
50-
message: function(e) { $('#content').append(e.data + '<br>') }
51-
}
52-
});
53-
$('#message').change(function(){
54-
ws.send('message', this.value);
55-
this.value = '';
56-
});
48+
var ws = $.websocket("ws://127.0.0.1:8080/", {
49+
events: {
50+
message: function(e) { $('#content').append(e.data + '<br>') }
51+
}
52+
});
53+
$('#message').change(function(){
54+
ws.send('message', this.value);
55+
this.value = '';
56+
});
5757
</script>
5858
</body>
5959
</html>

jquery.websocket.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery Web Sockets Plugin v0.0.2.dev
2+
* jQuery Web Sockets Plugin v0.0.2
33
* https://github.com/dchelimsky/jquery-websocket
44
* http://code.google.com/p/jquery-websocket/
55
*

0 commit comments

Comments
 (0)