Connection Header

Use as a parameter to to pass connection header: Groovy def wsSession = websocket.connect("/prices", websocket.header(["x-extra": "1"])) Check web-socket/import-and-dependencies Import And Dependencies for prerequisites. Java var wsSession = websocket.connect("/prices", websocket.header("x-extra", "1")); Check web-socket/import-and-dependencies Import And Dependencies for prerequisites.