wandoulabs/spray-websocket — pull request #15 by nefilim (2014-04-05 20:32:26+00:00)
Title: stash messages while we're waiting for the connection to be upgraded

thanks for the great project. when using the client connection, i thought it's useful to stash messages in the WebSocketClientConnection while waiting for the connection to be upgrade thus enabling one to instantiate the WebSocketClientConnection derived actor and send it a message immediately. currently, messages sent to the actor before the connection is upgraded are silently dropped.
i thought it's best to have this functionality in the WebSocketClientConnection rather than leaving it to the implementer to add this functionality (which is tricky to do with the way WebSocketClientConnection is setup currently).