mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
chore: update actix-ws to v0.3
This commit is contained in:
@ -66,7 +66,7 @@
|
||||
<div id="log"></div>
|
||||
|
||||
<form id="chatform">
|
||||
<input type="text" id="text" />
|
||||
<input type="text" id="text" autocomplete="off" />
|
||||
<input type="submit" id="send" />
|
||||
</form>
|
||||
|
||||
@ -133,7 +133,7 @@
|
||||
updateConnectionStatus()
|
||||
}
|
||||
|
||||
socket.onmessage = (ev) => {
|
||||
socket.onmessage = ev => {
|
||||
log('Received: ' + ev.data, 'message')
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@
|
||||
updateConnectionStatus()
|
||||
})
|
||||
|
||||
$form.addEventListener('submit', (ev) => {
|
||||
$form.addEventListener('submit', ev => {
|
||||
ev.preventDefault()
|
||||
|
||||
const text = $input.value
|
||||
@ -192,7 +192,6 @@
|
||||
})
|
||||
|
||||
updateConnectionStatus()
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user