Closed dmitshur closed 8 years ago
Tests pass:
Tests completed in 1142 milliseconds.
11 assertions of 11 passed, 0 failed.
Also tested locally with a net.Conn
-style use, worked without issues.
Will review later today.
LGTM. Merging. Sorry for the delay.
This simplifies the documentation and package slightly.
Remove
WriteString
method. It's a wrapper aroundSend
method, and is not helpful in the context of anet.Conn
, which deals with pure streams of bytes. To send text frames, either use aWebSocket
andSend
, or use type assertion to access theSend
method from the returnednet.Conn
implementation (it embeds aWebSocket
).Resolves #11.
Apply minor style improvements, internal doc fixes.