Advertisement
T99

philesc.js

T99
Sep 3rd, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onLoad() {
  2.  
  3.     if ('WebSocket' in window) {
  4.  
  5.         console.log("WebSockets are supported in this browser.")
  6.         var connection = new WebSocket('ws://localhost:1234');
  7.  
  8.     }
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement