Worlize/WebSocket-Node — Issue #18: Add Cookie Support
Author: theturtle32
Created: 2011-10-27 21:06:07+00:00
State: open
Labels: feature-request

It will be important to support both reading and setting cookie values as the needs of WebSocket browser clients expand and become more complex.

The accept() method of WebSocketRequest should take an additional third parameter, "cookies", that is an array of objects. Each of which is the definition of a cookie to set in the browser, and each of which will generate a "Set-Cookie" header sent in the response to the client.

The WebSocketRequest should also expose a new property, "cookies" that is an Object consisting of Key/Value pairs from the parsed Cookie header.

Once both of these features are complete, a new version of WebSocket-Node will be released.