This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const express = require('express'); | |
| const http = require('http'); | |
| const WS = require('ws'); | |
| const app = express(); | |
| //initialize a simple http server | |
| const server = http.createServer(app); | |
| //initialize the WebSocket server instance |