login returns
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ $html->content .= "
|
||||
<html lang=\"en\">
|
||||
<head>
|
||||
<meta charset=\"UTF-8\">
|
||||
<title>Ratchet Hello World</title>
|
||||
<title>Chat</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>WebSocket Test</h2>
|
||||
@@ -21,7 +21,7 @@ $html->content .= "
|
||||
|
||||
<script>
|
||||
const log = document.getElementById('log');
|
||||
const ws = new WebSocket('ws://localhost:8080');
|
||||
const ws = new WebSocket('ws://localhost:8080/ws');
|
||||
|
||||
ws.onopen = () => append('Connected');
|
||||
ws.onmessage = e => append('Server: ' + e.data);
|
||||
|
||||
Reference in New Issue
Block a user