Diff

mod_websocket/websocket.html @ 848:14e10bce7463

mod_websocket: Update example HTML
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 15 Oct 2012 20:56:15 +0200
parent 129:5fc00a3e47b5
child 1398:24f6540c1eaf
line wrap: on
line diff
--- a/mod_websocket/websocket.html	Sat Oct 13 03:31:26 2012 +0500
+++ b/mod_websocket/websocket.html	Mon Oct 15 20:56:15 2012 +0200
@@ -1,12 +1,10 @@
-
-
 <!DOCTYPE html>
 <html>
 	<head>
 		<title>XMPP Websocket</title>
 		<script type="text/javascript">
 			if ("WebSocket" in window) {
-				var ws = new WebSocket("ws://localhost:5281/xmpp-websocket");
+				var ws = new WebSocket("ws://localhost:5280/xmpp-websocket/", "xmpp");
 				ws.onopen = function() {
 					ws.send("<stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>");
 				};