API definition to websocket target

Hi,

I am having the same issue, getting websockets running, and have imported the API definition above and used the code from echo.websocket.org (changing the URL as appropriate). websockets is enabled in tyk.conf.

When the sockect connects to my hosted Tyk it gets a 500 error, I don’t know if there is any way of expanding this to get a more meaningful message out.

On further investigation these error messages are appearing
[Apr 20 09:54:46] ERROR proxy: http: proxy error: unsupported protocol scheme “ws” api_id=f1b301f84f8d410d5087ba9e8e678dcf org_id=58f777b3e13823092cf5c10d server_name=echo.websocket.org user_id= user_ip=79.66.176.17 user_name=
[Apr 20 09:54:46] ERROR gateway: request error: There was a problem proxying the request api_id=f1b301f84f8d410d5087ba9e8e678dcf org_id=58f777b3e13823092cf5c10d path=/ server_name=ws://echo.websocket.org/ user_id= user_ip=79.66.176.17

My tyk.conf contains

“http_server_options”: {
“override_defaults”: false,
“read_timeout”: 0,
“write_timeout”: 0,
“use_ssl”: false,
“use_ssl_le”: false,
“enable_websockets”: true,
“certificates”: null,
“server_name”: “”,
“min_version”: 0,
“flush_interval”: 0,
“skip_url_cleaning”: false
},