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
Train ML Models With SQL You Already Know Icon
Train ML Models With SQL You Already Know

BigQuery automates data prep, analysis, and predictions with built-in AI assistance.

Build and deploy ML models using familiar SQL. Automate data prep with built-in Gemini. Query 1 TB and store 10 GB free monthly.
Try 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

2 days ago