[Libwebsockets] testclient fails to connect

Andy Green andy at warmcat.com
Mon Apr 1 08:23:38 CEST 2019

On 01/04/2019 14:06, AL wrote:
> Hi, I'm just did a fresh compile (Win64, VS2017, no SSL) from github (v3.01)
> when I use the sample testclient to connect to *ws://demos.kaazing.com/echo
> *the client just hangs at*
> *[2019/04/01 13:56:23:6755] NOTICE: libwebsockets test client - license 
> [2019/04/01 13:56:23:6790] NOTICE: (C) Copyright 2010-2018 Andy Green 
> <andy at warmcat.com>
> [2019/04/01 13:56:23:6811] NOTICE:  SSL disabled
> [2019/04/01 13:56:23:6821] NOTICE:  Cert must validate correctly (use -s 
> to allow selfsigned)
> [2019/04/01 13:56:23:6866] NOTICE:  Requiring peer cert hostname matches
> [2019/04/01 13:56:23:6951] NOTICE: using ws mode (ws)
> [2019/04/01 13:56:23:6971] NOTICE: dumb: connecting
> [2019/04/01 13:56:23:7001] NOTICE: mirror: connecting

The lws test client tests lws ws subprotocols, it doesn't perform echoing.

You can run it against the lws test server and it should do something.

We is't like http where the protocol is specified, once the ws 
connection is made, which side does what is implied by the subprotocol 
name they agreed,  "echo" isn't actually a thing in rfc6455,

Lws has a minimal example client for echo you can connect with

lws-minimal-ws-client-echo -s demos.kaazing.com -u echo -p80

but that just gets me a 404.


it takes the approach that the server will send it something it should echo.


> -- 
> Robin

More information about the Libwebsockets mailing list