mirror of
https://github.com/faye/faye-websocket-ruby.git
synced 2025-11-01 13:59:13 +00:00
README tweaks.
This commit is contained in:
+10
-7
@@ -2,18 +2,21 @@
|
||||
|
||||
This is a robust, general-purpose WebSocket implementation extracted from the
|
||||
{Faye}[http://faye.jcoglan.com] project. It provides classes for easily building
|
||||
WebSocket servers and clients in Ruby.
|
||||
WebSocket servers and clients in Ruby. It does not provide a server itself, but
|
||||
rather makes it easy to handle WebSocket connections within an existing
|
||||
{Rack}[http://rack.rubyforge.org/] application running under
|
||||
{Thin}[http://code.macournoyer.com/thin/]. It does not provide any abstraction
|
||||
other than the standard {WebSocket API}[http://dev.w3.org/html5/websockets/].
|
||||
|
||||
Faye's WebSocket server can process {draft-75}[http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75],
|
||||
The server-side socket can process {draft-75}[http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-75],
|
||||
{draft-76}[http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76],
|
||||
{hybi-07}[http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07]
|
||||
and later versions of the protocol. It selects protocol versions automatically
|
||||
and presents the standard {WebSocket API}[http://dev.w3.org/html5/websockets/]
|
||||
for you to program against. It supports both +text+ and +binary+ messages, and
|
||||
automatically handles +ping+, +pong+, +close+ and fragmented messages.
|
||||
and later versions of the protocol. It selects protocol versions automatically,
|
||||
supports both +text+ and +binary+ messages, and transparently handles +ping+,
|
||||
+pong+, +close+ and fragmented messages.
|
||||
|
||||
|
||||
== Writing a WebSocket server
|
||||
== Accepting WebSocket connections in Rack
|
||||
|
||||
You can handle WebSockets on the server side by listening for HTTP Upgrade
|
||||
requests, and creating a new socket for the request. This socket object exposes
|
||||
|
||||
Reference in New Issue
Block a user