API definition to websocket target

That’s the same error message sequence I was seeing when I didn’t have enable_websockets in http_server_options. If the option isn’t loaded Tyk doesn’t know how to use the ws:// prefix.

What version of Tyk are you using? This is a fairly recent feature.