Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 28, 2024 via pnpm

websocket 1.0.29

Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.
Package summary
Share
13
issues
11
high severity
vulnerability
1
license
1
meta
9
2
low severity
license
2
8
licenses
268
MIT
33
ISC
3
Apache-2.0
5
other licenses
(MIT OR Apache-2.0)
1
BSD-2-Clause
1
BSD-3-Clause
1
CC-BY-3.0
1
+ 1 more
Package created
5 Jul 2011
Version published
3 Jul 2019
Maintainers
1
Total deps
309
Direct deps
5
License
Apache-2.0

Issues

13

11 high severity issues

high
Recommendation: Upgrade to version 5.1.2 or later
via: gulp@4.0.2
Recommendation: Read and validate the license terms
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: gulp@4.0.2
via: websocket@1.0.29
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: gulp@4.0.2
Recommendation: Read and validate the license terms
via: gulp@4.0.2
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
268 Packages, Including:
ansi-colors@1.1.0
ansi-gray@0.1.1
ansi-regex@2.1.1
ansi-wrap@0.1.0
append-buffer@1.0.2
archy@1.0.0
arr-diff@4.0.0
arr-filter@1.1.2
arr-flatten@1.1.0
arr-map@2.0.2
arr-union@3.1.0
array-each@1.0.1
array-initial@1.1.0
array-last@1.3.0
array-slice@1.1.0
array-sort@1.0.0
array-unique@0.3.2
assign-symbols@1.0.0
async-done@1.3.2
async-each@1.0.6
async-settle@1.0.0
bach@1.2.0
balanced-match@1.0.2
base@0.11.2
binary-extensions@1.13.1
bindings@1.5.0
brace-expansion@1.1.11
braces@2.3.2
buffer-equal@1.0.1
buffer-from@1.1.2
cache-base@1.0.1
call-bind@1.0.7
camelcase@3.0.0
chokidar@2.1.8
class-utils@0.3.6
clone-buffer@1.0.0
clone-stats@1.0.0
clone@2.1.2
cloneable-readable@1.1.3
code-point-at@1.1.0
collection-map@1.0.0
collection-visit@1.0.0
component-emitter@1.3.1
concat-map@0.0.1
concat-stream@1.6.2
convert-source-map@1.9.0
copy-descriptor@0.1.1
copy-props@2.0.5
core-util-is@1.0.3
debug@2.6.9

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
33 Packages, Including:
anymatch@2.0.0
cliui@3.2.0
color-support@1.1.3
d@1.0.1
es5-ext@0.10.64
es6-symbol@3.1.3
es6-weak-map@2.0.3
esniff@2.0.1
ext@1.7.0
fs.realpath@1.0.0
get-caller-file@1.0.3
glob-parent@3.1.0
glob@7.2.3
graceful-fs@4.2.11
hosted-git-info@2.8.9
inflight@1.0.6
inherits@2.0.4
ini@1.3.8
isexe@2.0.0
minimatch@3.1.2
next-tick@1.1.0
once@1.4.0
remove-trailing-separator@1.1.0
require-main-filename@1.0.1
semver@5.7.2
set-blocking@2.0.0
type@1.2.0
type@2.7.2
which-module@1.0.0
which@1.3.1
wrappy@1.0.2
y18n@3.2.2
yargs-parser@5.0.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
3 Packages, Including:
spdx-correct@3.2.0
validate-npm-package-license@3.0.4
websocket@1.0.29

(MIT OR Apache-2.0)

Permissive
1 Packages, Including:
atob@2.1.2

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
normalize-package-data@2.5.0

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map@0.5.7

Creative Commons Attribution 3.0 Unported

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-exceptions@2.5.0

Creative Commons Zero v1.0 Universal

Public Domain
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
spdx-license-ids@3.0.17
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of websocket 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
debug2.6.916.13 kBMIT
prod
gulp4.0.28.16 kBMIT
prod
10
2
nan2.18.074.96 kBMIT
prod optional
typedarray-to-buffer3.1.53.67 kBMIT
prod
yaeti0.0.63.34 kBMIT
prod

Visualizations

Frequently Asked Questions

What does websocket do?

The package "websocket" is a client and server library that implements the WebSocket protocol as per RFC 6455 specification. This allows real-time communication between a client and a server. The JavaScript implementation is designed to work with Node.js and supports the WebSocket protocol versions 8 and 13. It's capable of handling and aggregating received fragmented messages, fragmenting outgoing messages, tuning settings and more. It also supports a W3C WebSocket API for applications running on both Node and browsers.

How do you use websocket?

To use the "websocket" package, you first need to install it using npm with the command npm install websocket executed in your project root. You can then require it in your code using var WebSocketServer = require('websocket').server;.

Here's an example of how to set up a simple WebSocket server:

var WebSocketServer = require('websocket').server;
var http = require('http');

var server = http.createServer(function(request, response) {
    console.log((new Date()) + ' Received request for ' + request.url);
    response.writeHead(404);
    response.end();
});

server.listen(8080, function() {
    console.log((new Date()) + ' Server is listening on port 8080');
});

wsServer = new WebSocketServer({
    httpServer: server,
    autoAcceptConnections: false
});

wsServer.on('request', function(request) {
    var connection = request.accept('echo-protocol', request.origin);
    console.log((new Date()) + ' Connection accepted.');
    connection.on('message', function(message) {
        if (message.type === 'utf8') {
            connection.sendUTF(message.utf8Data);
        }
    });
    connection.on('close', function(reasonCode, description) {
        console.log((new Date()) + ' Peer ' + connection.remoteAddress + ' disconnected.');
    });
});

This code creates an HTTP server and associates a new WebSocketServer with it, listening on port 8080.

Where are the websocket docs?

The detailed API documentation for the "websocket" package can be found in the docs folder on the GitHub repository. The link is here: git+https://github.com/theturtle32/WebSocket-Node/docs/index.md. It provides comprehensive information about the WebSocket Client, Server Implementation for Node with various examples and use-cases.