Skip to main content

Sockets

Sockets

A WebSocket library for Deno.


Although Sockets has working code, it is still very much under development and unstable. APIs will change without notice. Sorry for any inconvenience!

Table of Contents

Getting Started

To get you started as quickly as possible with a simple client and server, check out the following example app:

We also have a more advanced example app:

All example apps in the example_apps directory have their own README.md file. The README.md files have all the instructions you need to get started.

Integrating

Sockets is composed of two parts:

  • A SocketServer class that is used to instantiate a socket server on the back-end

    import { SocketServer } from "https://deno.land/x/sockets@master/mod.ts";
  • A client library that loads on the front-end

    <script type="module" src="https://cdn.jsdelivr.net/gh/drashland/sockets-client@latest/client.js">

Features

  • Binary-support
  • Auto-reconnection support

Roadmap

  • Docs website

Contributing

Contributors are welcomed!

Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.

License

By contributing your code, you agree to license your contribution under the MIT License.