Cookie support for vertx3 websocket client?

158 views
Skip to first unread message

webgeek webgeek

unread,
Jul 28, 2015, 2:36:10 AM7/28/15
to vert.x
Hi All,

Wondering if vertx3 websocket client has support for adding a cookie header before requesting for an handshake / connection to a server. I can see from the documentation that the vertx websocket server can read headers, but how do you put the headers in by the websocket client?

Converting an application that uses Tyrus/Javawx library currently to do this. Any pointers on how to do this in vertx will help.

Thanks.

Julien Viet

unread,
Jul 28, 2015, 6:44:57 AM7/28/15
to ve...@googlegroups.com, webgeek webgeek
Hi,

you have an overloaded version of HttpClient#websocket that accepts a MultiMap headers object, for instance:

HttpClient websocket(String requestURI, MultiMap headers, Handler<WebSocket> wsConnect)

cheers

-- 
Julien Viet
www.julienviet.com

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/c416dd01-9532-423b-ab9e-d7c3022e060c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages