Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onLoad() {
- if ('WebSocket' in window) {
- console.log("WebSockets are supported in this browser.")
- var connection = new WebSocket('ws://localhost:1234');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement