Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Deno
  3. deno-websocket

deno-websocket

MITTypeScriptv0.1.4

A simple WebSocket library for Deno, inspired by Node.js's ws library, providing server and client APIs.

Visit WebsiteGitHubGitHub
160 stars20 forks0 contributors

What is deno-websocket?

deno-websocket is a WebSocket library for the Deno runtime that provides both server and client APIs for real-time bidirectional communication. It wraps Deno's standard WebSocket library for server-side functionality and uses the native WebSocket API for client-side operations, offering an API similar to Node.js's ws library. The library enables developers to build WebSocket applications in Deno with consistent object formats and event-driven interfaces.

Target Audience

Deno developers who need to implement WebSocket servers or clients for real-time applications like chat systems, live updates, or gaming backends.

Value Proposition

Developers choose deno-websocket because it brings the familiar and simple API of Node.js's ws library to Deno, eliminating the need to learn a new WebSocket implementation. It provides a unified approach for both server and client sides, making it easier to build real-time features in Deno applications.

Overview

🦕 A simple WebSocket library like ws of node.js library for deno

Use Cases

Best For

  • Building real-time chat applications in Deno
  • Creating live data dashboards with WebSocket updates
  • Implementing multiplayer game backends with bidirectional communication
  • Developing collaborative editing tools with instant sync
  • Adding real-time notifications to Deno web applications
  • Building WebSocket proxies or gateways in Deno

Not Ideal For

  • Projects targeting Node.js or multi-runtime environments where Deno is not the primary platform
  • Applications needing advanced WebSocket features like subprotocol negotiation, compression, or custom handshake headers not supported by Deno's standard library
  • Teams requiring extensive documentation, tutorials, or a large community for support beyond basic examples
  • Use cases where minimal dependencies are critical, as it wraps Deno's standard library which may introduce version constraints

Pros & Cons

Pros

Node.js API Familiarity

Provides an API closely mirroring the popular Node.js ws library, easing the transition for developers moving to Deno, as stated in the README's philosophy.

Unified Object Format

Uses consistent object structures across server and client sides, simplifying development, which is highlighted as a key feature in the README.

EventEmitter Interface

Implements an EventEmitter pattern for handling events like connection and message, making asynchronous programming intuitive, as shown in the usage examples.

Standard Library Integration

Wraps Deno's standard WebSocket library for server-side operations, ensuring compatibility with the Deno runtime, as noted in the README's description.

Cons

Limited Advanced Features

Primarily relies on Deno's standard library, so it lacks built-in support for advanced WebSocket capabilities like compression or custom protocols, which might be needed in complex real-time applications.

Deno Platform Lock-in

Exclusively designed for Deno, making it unsuitable for projects that require cross-platform compatibility with Node.js or other JavaScript runtimes, limiting flexibility.

Sparse Documentation

The README offers basic examples and event tables but lacks in-depth guides, API references, or troubleshooting tips, which could hinder development for non-trivial use cases.

Frequently Asked Questions

Quick Stats

Stars160
Forks20
Contributors0
Open Issues9
Last commit3 years ago
CreatedSince 2020

Tags

#websocket-server#client#server#deno#websocket-library#websocket#bidirectional-communication#ws#typescript#rfc-6455#real-time#event-emitter#websocket-client

Built With

D
Deno
T
TypeScript

Links & Resources

Website

Included in

Deno4.4k
Auto-fetched 19 hours ago

Related Projects

wocketwocket

A WebSocket library for Deno

Stars102
Forks4
Last commit2 years ago
dropperdropper

Custom event-based WebSockets framework for building real-time apps on Deno 🦕

Stars27
Forks5
Last commit3 years ago
websocket_serverwebsocket_server

A WebSocket server library for Deno 🔌

Stars10
Forks1
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub