misu
2472e6d800
upgrade: use pool for writerdict
2018-01-30 19:02:50 +09:00
misu
f2a68e2d21
add: call compress method test
2018-01-30 18:37:52 +09:00
misu
a9475f2ccf
mod: remove judge dict nil
2018-01-29 18:12:43 +09:00
misu
e2dd00db3d
mod: dict strategy
2018-01-29 15:10:19 +09:00
smith30
d0e8769234
Merge pull request #11 from smith-30/feature/add_test
...
Feature/add test
2018-01-26 17:54:04 +09:00
misu
e873eb1ee0
mod: test and write compression
2018-01-26 17:52:23 +09:00
misu
70abf7287b
mod: .gitignore to ignore .test file
2018-01-25 19:01:58 +09:00
smith30
67b993939f
Merge pull request #10 from smith-30/feature/mod_add_dict
...
mod: add dict process
2018-01-25 14:00:15 +09:00
misu
80a809717d
mod: add dict process
2018-01-25 13:55:52 +09:00
smith30
bf99740cc4
Merge pull request #8 from smith-30/feature/remove_dict_lock
...
mod: remove mutex.
2018-01-24 23:09:56 +09:00
misu
cecdf7ced4
mod: remove mutex.
2018-01-24 23:09:03 +09:00
smith30
538a96d70f
Merge pull request #7 from smith-30/feature/client_context_takeover
...
add: context-takeover option to client
2018-01-24 20:01:03 +09:00
misu
dfe35b789b
add: context-takeover option to client
2018-01-24 20:00:09 +09:00
smith30
ad97036825
Merge pull request #6 from smith-30/feature/split_dict
...
mod: split dict to rx and tx
2018-01-24 18:10:20 +09:00
misu
eec63bf9bc
mod: split dict to rx and tx
2018-01-24 18:08:43 +09:00
smith30
8ddcb400fb
Merge pull request #4 from smith-30/feature/impl_compressContextTakeover
...
Feature/impl compress context takeover
2018-01-24 18:02:42 +09:00
misu
f7abc95255
mod: method args name
2018-01-24 18:01:48 +09:00
misu
a366cdf616
impl: compressContextTakeover
2018-01-24 17:53:38 +09:00
misu
36c43970ee
impl: decompressContextTakeover
2018-01-24 16:52:47 +09:00
misu
e0da4e377f
mod: .gitignore
2018-01-21 17:56:13 +09:00
misu
a2b487748b
Merge branch 'feature/add_extension_header' into feature/impl_decompressContextTakeover
2018-01-21 15:28:20 +09:00
misu
9177fe8645
mod: comment out
2018-01-21 15:11:58 +09:00
misu
785fa70cb3
add server header option
2018-01-21 15:10:50 +09:00
misu
053a620207
add: validation
2018-01-19 01:43:04 +09:00
misu
8a8329be68
modify: header option
2018-01-18 01:41:59 +09:00
Gary Burd
292fd08b25
Replace "frame" with "message" in documentation
...
The documentation sometimes used the term "frame" when referring to
single frame control messages. Use the term "message" for consistency
in the documentation and to hide a detail that most application
programmers do not need to know about.
2018-01-10 06:15:25 -08:00
Gary Burd
58729a2165
Don't log 1006 error in chat example
...
This error is expected (Safari closes connections without sending a close
frame).
Fixes #323
2018-01-09 12:15:58 -08:00
Gary Burd
d965e9adc6
Handle no status in FormatCloseMessage
...
Return empty message for CloseNoStatusReceived. This status indicates
that the message is empty, so make it so. Because it's illegal to send
CloseNoStatusReceived, this change should not break a correct
application.
2017-12-28 07:29:59 -08:00
Jordan Pittier
cdedf21e58
examples/chat/client.go: avoid allocating []byte{} for PingMessage ( #312 )
...
It's useless and only gives more work to the GC.
2017-12-09 19:53:53 -08:00
Gary Burd
c55883f973
Add parseExtensions test case ( #310 )
2017-12-05 11:45:40 -08:00
Gary Burd
b89020ee79
Add SOCKS5 support
...
- Bundle the golang.org/x/net/proxy package to x_net_proxy.go. The
package contains a SOCKS5 proxy. The package is bundled to avoid adding
a dependency from the weboscket package to golang.org/x/net.
- Restructure the existing HTTP proxy code so the code can be used as a
dialer with the proxy package.
- Modify Dialer.Dial to use proxy.FromURL.
- Improve tests (avoid modifying package-level data, use timeouts in
tests, use correct proxy URLs in tests).
Fixes #297 .
2017-11-30 17:43:01 -08:00
Gary Burd
8c6cfd493d
Improve bad handshake error text
...
Change the error text for bad handshake errors from
websocket: not a websocket handshake:
to:
websocket: the client is not using the websocket protocol:
The new text should be more helpful to developers who do not know or
understand the details of the protocol.
Test for bad handshake before other request errors.
2017-11-30 16:45:44 -08:00
fising
2b58522131
update README.md
2017-11-29 07:20:15 -08:00
David Dollar
b648f206c2
Use ASCII case folding in same origin test
2017-11-27 16:10:45 -08:00
Gary Burd
23059f2957
Update with gofmt on tip
...
The changes are compatible with older versions of gofmt.
2017-11-23 00:11:29 -08:00
Gary Burd
447c2df769
Compare request header tokens with ASCII case folding
...
Compare request header tokens with ASCII case folding per the WebSocket
RFC.
2017-11-22 23:15:27 -08:00
Gary Burd
aa5ed01c91
Improve control message handling documentation
...
Closes #299
2017-11-19 13:55:18 -08:00
Sebastian Waisbrot
7ca4275b84
More consistent error handling in doc
...
I noticed the example is actually wrong as the same block both calls `return` with no parameter and `return err`. I think it would be better to allow the code to be used directly. I added calls to log.Println as it was used on the other example as it might be more useful for newcomers to see error messages.
2017-11-12 07:44:06 -08:00
Gary Burd
3da6ca0cb6
Simplify and fix spelling errors in test files
...
Simplify using gofmt -s.
2017-11-02 08:08:30 -07:00
Jérôme Bernard
71fa72d484
Replace parseURL() with net/url.Parse() ( #290 )
2017-10-12 19:08:58 -07:00
Gary Burd
f918560c4c
Improve NextWriter documentation
2017-10-10 09:16:43 -07:00
xPushkin
c908dc801c
Typo fix
...
Just a small typo fix.
2017-10-07 13:56:17 -07:00
Gary Burd
4201258b82
Merge pull request #286 from alaingilbert/patch-1
...
Add missing html tag in example/echo
2017-09-26 16:33:35 -07:00
Alain Gilbert
5755884efa
Add missing html tag in example/echo
2017-09-26 16:13:09 -07:00
Gary Burd
6f34763140
Add Go 1.9 to Travis config
2017-09-13 22:11:54 -07:00
Gary Burd
a69d9f6de4
Merge branch 'updoc'
2017-07-18 13:23:41 -07:00
Gary Burd
92f772e4b3
Misc cleanup
...
- Fix lint warnings.
- Use standard comment format to mark deprecated identifiers.
- Remove redundant paragraph from doc.
2017-07-18 13:21:30 -07:00
fuzzybear3965
f4f69d2d8d
implementing (some of) @garyburd's suggestions
2017-07-10 10:21:27 -04:00
Gary Burd
462d5c5828
Merge pull request #261 from kybin/master
...
doc: use ":=" when check error for conn.WriteMessage
2017-07-08 03:26:55 -04:00
fuzzybear3965
1d375d5a0d
distinguish Upgrader.Upgrade from Upgrade
2017-07-07 14:47:14 -04:00