Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Site.js
site
Commits
d922c7cd
Verified
Commit
d922c7cd
authored
Aug 28, 2019
by
Aral Balkan
Browse files
Fix typo: add missing word “on”
parent
071919f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
d922c7cd
...
...
@@ -143,7 +143,7 @@ module<span class="token punctuation">.</span><span class="token function-variab
<span
class=
"token keyword"
>
EOF
</span></code>
<code>
site
<span
class=
"token string"
>
basic-chat
</span></code></pre>
<p>
To test it, open up two web browser windows and enter the following into the web developer (JavaScript) console both of them:
</p>
<p>
To test it, open up two web browser windows and enter the following into the web developer (JavaScript) console
on
both of them:
</p>
<pre><code
class=
'language-js'
><span
class=
"token keyword"
>
const
</span>
webSocket
<span
class=
"token operator"
>
=
</span>
<span
class=
"token keyword"
>
new
</span>
<span
class=
"token class-name"
>
WebSocket
</span><span
class=
"token punctuation"
>
(
</span><span
class=
"token string"
>
'wss://localhost/chat'
</span><span
class=
"token punctuation"
>
)
</span>
webSocket
<span
class=
"token punctuation"
>
.
</span><span
class=
"token function-variable function"
>
onmessage
</span>
<span
class=
"token operator"
>
=
</span>
console
<span
class=
"token punctuation"
>
.
</span><span
class=
"token function"
>
log
</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment