This repository was archived by the owner on Aug 16, 2023. It is now read-only.
File tree 3 files changed +15
-11
lines changed
3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.0.2
2
+
3
+ * Support multiple websocket connections from one html page by ensuring that
4
+ each gets its own settings.
Original file line number Diff line number Diff line change @@ -43,17 +43,17 @@ but no activity in the code since 2010.
43
43
<script src="http://www.google.com/jsapi"></script>
44
44
<script>google.load("jquery", "1.3")</script>
45
45
<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>
47
47
<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
+ });
57
57
</script>
58
58
</body>
59
59
</html>
Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery Web Sockets Plugin v0.0.2.dev
2
+ * jQuery Web Sockets Plugin v0.0.2
3
3
* https://github.com/dchelimsky/jquery-websocket
4
4
* http://code.google.com/p/jquery-websocket/
5
5
*
You can’t perform that action at this time.
0 commit comments