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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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

18 hours ago