Created
November 14, 2022 17:21
-
-
Save yakovenkodenis/6febecc8686c6b10f33f14b7e9ea155c to your computer and use it in GitHub Desktop.
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 http = require('node:http'); | |
| const { EventEmitter } = require('node:events'); | |
| class WebSocketServer extends EventEmitter { | |
| constructor(options = {}) { | |
| super(); | |
| this.port = options.port || 4000; | |
| this._init(); | |
| } | |
| _init() { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment