25 Commits (79c13ba18aa749149e9fa1b091dd6c564d8c8202)

Author SHA1 Message Date
Matt Smith feb58b5c8c Fixed websocket not reading multiple messages in one packet 5 years ago
Andriy Senkovych 8deffc7403 Rename libb64 to b64 for compatibility reasons, move to DEPS. 11 years ago
David Costa Faidella 884cba24e0 If the command is a SUBSCRIBE or a PSUBSCRIBE, the keep alive should be 1, keeping the connection alive from the web socket and enabling the client to manage its lifecycle. This seems to do the trick but I don't know enough about the webdis architecture as to guarantee that there are no side effects. But so far seems to do the trick. 12 years ago
Nicolas Favre-Felix 2cfc27dacc Fix websockets for recent versions of Chrome
* Remove Sec-WebSocket-Protocol: chat
* Make sure frames are sent asynchronously
12 years ago
Nicolas Favre-Felix 540b1a91bb Create new connection for new separate DBs. 12 years ago
Jeremy Morse e9da83d268 If a websocket SUBSCRIBEs, use new redis context.
This patch emulates functionality already in cmd_run, in the context of
websockets. A client running "[P]SUBSCRIBE" will restrict the commands
allowed to be issued in the context used. Therefore, websocket clients
making subscriptions get their own context, so as to not pollute the
workers' own Redis contexts.

Resource/context deallocation should occur upon http client disconnect,
just as it is for client-specific contexts from cmd_run.
13 years ago
Nicolas Favre-Felix 5385f9cbaa Fixed warnings seen on FreeBSD. 13 years ago
Nicolas Favre-Felix 741db1b0c0 Removed endian.h
(Fixes GitHub issue #38).
13 years ago
Nicolas Favre-Felix 54d0d45d8d Moving away from endian.h 13 years ago
Nicolas Favre-Felix 227e1809e4 More compatibility fixes with endian.h 13 years ago
Nicolas Favre-Felix d4d0ba4c4b Added sys/endian.h for Mac OSX.
(GitHub issue #38).
13 years ago
Nicolas Favre-Felix 022861ebd1 WebSocket fixes.
* Fixed size issues with large WS payloads.
* Added support for continuation frames.
13 years ago
Nicolas Favre-Felix 5190c16157 Updated WebSocket protocol to RFC6455.
WebSocket HTML demo now works with Google Chrome 17
and Firefox 8.
13 years ago
Nicolas Favre-Felix 1014ed5bc4 Read messages from WebSocket client. 13 years ago
Nicolas Favre-Felix 9b2cadadab Fixed byte-ordering in SHA1, added separate Origin header, and added support for prefixed MozWebSocket. 13 years ago
Nicolas Favre-Felix 1dd111a6eb Merge branch 'master' of github.com:nicolasff/webdis into websockets 13 years ago
Nicolas Favre-Felix e35374c8b0 Removed 2 unused warnings. 13 years ago
Nicolas Favre-Felix 6925709612 Websocket protocol, now sending proper Sec-WebSocket-Accept header. 13 years ago
Nicolas Favre-Felix bac0ed9128 Added base-64 encoding to WebSocket handshake. 13 years ago
Nicolas Favre-Felix f8ed8c89c9 Started implementing the new WebSocket protocol 13 years ago
Nicolas Favre-Felix b01cb75db7 Disconnect broken SUBSCRIBE clients. 14 years ago
Nicolas Favre-Felix b3f2b2f306 Support Redis wire protocol over HTML5 WebSockets. 14 years ago
Nicolas Favre-Felix cd9fd9a335 Refactoring, commenting. 14 years ago
Nicolas Favre-Felix 239c9004dc HTTP version in reply. 14 years ago
Nicolas Favre-Felix 5b7aa50e62 Partial rewrite, adding WebSockets, threads, pool. 14 years ago