Skip to content

Commit

Permalink
[minor] Add WebSocket.WebSocketServer alias
Browse files Browse the repository at this point in the history
Add `WebSocket.WebSocketServer` as an alias for `WebSocket.Server` to
fix name consistency and improve interoperability with the ES module
wrapper.

Refs: #1932
  • Loading branch information
lpinca committed Aug 16, 2021
1 parent c677aab commit 1d519bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -7,4 +7,6 @@ WebSocket.Server = require('./lib/websocket-server');
WebSocket.Receiver = require('./lib/receiver');
WebSocket.Sender = require('./lib/sender');

WebSocket.WebSocketServer = WebSocket.Server;

module.exports = WebSocket;

0 comments on commit 1d519bd

Please sign in to comment.