Gary Burd
ea4d1f681b
Reduce memory used in chat example
2017-06-20 12:01:03 -07:00
Gary Burd
5ade364dff
Improve examples
...
- Remove jQuery dependency in command example.
- Fix auto scroll on new content in chat and command example.
- Update chat and command example to use a static HTML file.
2017-02-15 17:01:07 -08:00
Gary Burd
804cb600d0
Prepared Messages ( #211 )
2017-02-14 09:41:18 -08:00
Shrumit Mehta
9bc973af06
Change text/template to html/template in the examples
...
Change text/template to html/template in examples
2017-02-13 10:21:12 -08:00
Aleksandr Andrienko
0e7877a5a1
Fix up README.md for command example.
2016-12-27 15:04:14 +02:00
Shivam Mamgain
dc13401989
Fix documentation
...
Specify correct function name in README
2016-11-12 16:02:12 +05:30
Gary Burd
2aff870ef8
Improve command example
...
- Close connection cleanly on EOF from command.
2016-10-27 21:05:23 -07:00
Gary Burd
6257d10a8b
Improve chat example
...
- Discuss concurrency and message coalescing in the README.
- Add comments to client.go explaining how concurrency requirements are
met.
- Prevent developers from calling the Client.write method from outside
of the writePump goroutine by removing the method. The code is now
inlined in Client.writPump.
2016-10-25 16:48:54 -07:00
Gary Burd
a0ef436d00
compression: add tests, rename option
2016-10-17 17:30:22 -07:00
Sam Broughton
295028b997
Fix typos in chat example
2016-08-02 07:24:52 +01:00
Gary Burd
5e2e56d5df
Improve chat example
...
- Remove jQuery.
- Rename Conn to Client to avoid confusion with underlying ws
connection.
- Remove global variables.
2016-07-18 16:08:34 -07:00
Ryan Havar
b5afd49817
Update hub.go
2016-07-10 23:15:05 -05:00
Gary Burd
54f9decdbf
Add description to the chat example readme
2016-07-01 11:57:38 -07:00
Gary Burd
a68708917c
Coalesce outbound messages in chat example
2016-06-06 16:20:22 -07:00
Gary Burd
afffb15196
Merge branch 'varnames'
2016-05-26 21:01:19 -07:00
Gary Burd
24cddddcc0
Use single character receiver names in chat example
2016-05-26 21:00:24 -07:00
Gary Burd
2301bcbf5c
Cleanup js in chat example
2016-05-26 10:19:40 -07:00
Jean de Klerk
be95f72b73
Meaningful names for connection, message
2016-05-18 08:57:16 -06:00
Jean de Klerk
a6108176e8
Meaningful names for hub
2016-05-18 08:56:16 -06:00
Gary Burd
6b3d49710b
Fix filewatch example
...
Use last modified time when the time is parsed without error. This prevents an
extra file read at start of watch for a connection.
Fixes #125 .
2016-04-21 17:30:17 -07:00
Gary Burd
5434f8b69b
Improve IsUnexpectedCloseError examples
2016-01-19 18:24:46 -08:00
Gary Burd
844dd6d40e
Add closing handshake code to echo example client
2015-12-09 16:50:38 -08:00
Gary Burd
361d4c0ffd
Improve echo web UI
...
Based on feedback from anon.
2015-11-02 11:10:34 -08:00
Gary Burd
c93e5540b8
Add web client to echo example
2015-11-02 10:39:51 -08:00
Gary Burd
567453a710
Require GET in Upgrader.Upgrade.
...
Return error if the request method is not GET.
Remove all request method tests from the examples.
2015-11-02 09:08:11 -08:00
Gary Burd
423912737d
Improve documentation
2015-10-19 15:05:01 -07:00
Gary Burd
d14d8b4715
Add pinging to command example
2015-10-18 18:17:26 -07:00
Gary Burd
7f59b56ea4
Fix DefaultDialar value
...
Initialize as pointer to struct with zero values as as implied by the
doc comment. This initialization matches similar values in the standard
library.
2015-10-18 15:41:02 -07:00
Gary Burd
0e33ab35f9
Fix race in command example
...
Close files in handler goroutine to avoid race.
Remove use of exec.Cmd. It's not adding anything.
2015-10-18 15:32:45 -07:00
Gary Burd
f9219095ab
Add command example
2015-10-18 13:32:14 -07:00
Henri Koski
20b4ee30ab
Small typo fix in comment
2015-10-06 21:40:04 +03:00
Gary Burd
13e4d0621c
Do not build files in echo example
2015-09-23 15:29:30 -07:00
Gary Burd
d051d29231
Add client and server example
2015-09-23 15:23:26 -07:00
Gary Burd
6eb6ad425a
Improve chat example documentation
2015-07-14 07:06:27 -07:00
Gaku Ueda
9dc53c0673
Fixed broken HTML for autobahn test server.
2014-12-24 03:15:18 -08:00
Christian Stefanescu
0a52d61198
fixed typo in comment
2014-09-11 08:36:21 +02:00
Jean-Christophe Bohin
acc8d8706f
Changing a swap in README.md for autobahn
...
Autobahn test suite configuration fuzzingclient.json refers to 'clients' folder, but README.md refers to server. I changed README.md to clients, although I can't figure a good way to choose between changing README.md for 'clients' or fuzzingclient.json for servers. both seems legit to me, depending on what side you see things. Feel free to dismiss/decline my PR if you think the former makes more sense in this context.
2014-08-04 23:58:41 +02:00
Gary Burd
bc19d3d337
Improve chat example.
...
- Log all handshake errors.
- Prevent double close on send channel.
2014-06-27 13:08:22 -07:00
Aaron France
b98fe92f10
Typo fix
2014-05-10 14:30:27 +02:00
Gary Burd
82a29af075
Update readme files
...
- Improve comparison with go.net package.
- Improve autobahn server description.
2014-04-20 21:14:06 -07:00
Gary Burd
15aed3b4a4
Relicense to the Gorilla WebSocket Authors.
2014-04-18 14:25:11 -07:00
Joachim Bauch
018944708b
Removed unnecessary call to "http.Error".
2014-04-18 00:14:23 +02:00
Joachim Bauch
8827bd1a23
Moved Upgrader variable to package level.
2014-04-18 00:13:15 +02:00
Joachim Bauch
b03dcbad2a
Updated Origin check.
...
The host in the Origin header must match the host of the request by default.
2014-04-18 00:07:36 +02:00
Joachim Bauch
9474333b60
Use new Upgrader API in examples
2014-04-16 17:42:15 +02:00
Gary Burd
03206ef31e
Various improvements to README files.
2014-03-20 13:26:28 -07:00
Gary Burd
05618edccc
Add file watcher example.
2014-03-20 12:25:30 -07:00
Gary Burd
273ecadfca
Initial commit
2013-10-16 16:30:59 -07:00