changeset 848:14e10bce7463

mod_websocket: Update example HTML
author Florian Zeitz <florob@babelmonkeys.de>
date Mon, 15 Oct 2012 20:56:15 +0200
parents 1c9a3454eb43
children 6e2ec1825182
files mod_websocket/websocket.html
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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'>");
 				};