Hi,
Thanks for the feedback! Please check the comments below.
On Sun, Sep 25, 2016 at 7:25 PM, mhhcbon wrote:
> Hi,
>
> The code below looks like to make the job, based on the second version i
> posted, but with RL library.
>
> BTW, just wondering,
>
> why don t you use standard bufio+os.Stdin
Hi,
It seems you assume that the server sends a single response for each
message received. But don't forget that WebSocket is fully duplex and the
server can send multiple messages at any time while you wait for input.
Regards,
Kwang Yul Seo
On Sun, Sep 25, 2016 at 10:02 PM, mhhcbon
wrote:
>
age()
> return
> }
>
> conn, err := dial(*url, *origin, *subprotocol)
> if err!=nil {
> panic(err)
> }
>
> write, writeEnd, writeErr := writeConn(conn)
> read, wantRes, readEnd, readErr := readConn(conn)
> rl, wantRl, rlEnd, rlErr := readLine()
>
Hello,
I am happy to announce the release of the ws-cli, a simple WebSocket
command line client written in Go.
https://github.com/kseo/ws-cli
# Installation
go get github.com/kseo/ws-cli
# Usage
$ we-cli -url ws://echo.websocket.org
connected (press CTRL+C to quit)
> hi there
< hi there
> ar