britzl / defnet

Defold networking examples
MIT License
65 stars 16 forks source link

allow to pass custom path and query string to ws connection #2

Closed endel closed 6 years ago

endel commented 6 years ago

This change allows to set custom query string to the websocket connection.

Example

local ws = websocket_async(true)
ws:connect("ws://0.0.0.0/custom_path?foo=bar")
endel commented 6 years ago

Apparently this only works in the browser environment. 😢

endel commented 6 years ago

This is now working as expected on https://github.com/britzl/defold-websocket