EM-WebSocket is an asynchronous WebSocket server library for Ruby built on the EventMachine networking framework. It lets applications accept connections and react to open, message, close, error, ping, and pong events through callbacks. The server supports the standardized WebSocket protocol as well as numerous older drafts retained for legacy compatibility. Connection handshakes expose paths, query strings, origins, headers, protocol versions, and security status. The library can serve encrypted WSS connections directly or operate behind an SSL termination proxy. It also supports clean close codes, configurable frame-size limits, automatic pong responses, binary messages, and a health-check endpoint. Its event-driven design is suited to chat, broadcasting, live updates, and other real-time Ruby services.

Features

  • EventMachine-based asynchronous Ruby server
  • Support for RFC WebSockets and legacy drafts
  • Callback handlers for connection and message events
  • Ping, pong, close-code, and binary-message support
  • Direct WSS and secure-proxy operation
  • Health checks and configurable frame-size limits

Project Samples

Project Activity

See All Activity >

Categories

Proxy Servers

License

MIT License

Follow EM-WebSocket

EM-WebSocket Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of EM-WebSocket!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Proxy Servers

Registered

2026-07-10