Adding possibility to set websocket options