Sockette is a tiny (367 bytes) wrapper around WebSocket that will automatically reconnect if the connection is lost. In addition to attaching additional API methods, Sockette allows you to reuse instances, avoiding the need to redeclare all event listeners. You have direct access to the (current) underlying WebSocket within every EventListener callback.

Features

  • Unlike WebSocket, you should declare all event listeners on initialization
  • Either a single protocol string or an array of strings used to indicate sub-protocols
  • License under the MIT license
  • Sockette allows you to reuse instances, avoiding the need to redeclare all event listeners
  • Sockette is a tiny (367 bytes) wrapper around WebSocket that will automatically reconnect if the connection is lost
  • You have direct access to the (current) underlying WebSocket within every EventListener callback

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Sockette

Sockette Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Sockette!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript WebSocket Libraries

Registered

2023-08-14