From 82a29af075a528d0cbdd0f337787647f2ae2fb4b Mon Sep 17 00:00:00 2001 From: Gary Burd Date: Sun, 20 Apr 2014 21:14:06 -0700 Subject: [PATCH] Update readme files - Improve comparison with go.net package. - Improve autobahn server description. --- README.md | 28 ++++++++++++++-------------- examples/autobahn/README.md | 11 +++-------- 2 files changed, 17 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 66b9eaf..8654027 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ package API is stable. ### Protocol Compliance -The Gorilla WebSocket package passes the server tests in the [Autobahn WebSockets Test +The Gorilla WebSocket package passes the server tests in the [Autobahn Test Suite](http://autobahn.ws/testsuite) using the application in the [examples/autobahn subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn). @@ -34,19 +34,19 @@ subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn go.net -Protocol supportRFC 6455RFC 6455, see notes -Limit size of received messageYesNo -Send pings and receive pongsYesNo -Send close messageYesNo -Read message using io.ReaderYesNo, see notes -Write message using io.WriteCloserYesNo, see notes +RFC 6455 Features +Passes Autobahn Test SuiteYesNo +Receive fragmented messageYesNo +Send close messageYesNo +Send pings and receive pongsYesNo +Other Features +Limit size of received messageYesNo +Read message using io.ReaderYesNo, see note +Write message using io.WriteCloserYesNo, see note Encode, decode JSON messageYesYes -Notes: - -- The go.net package does not handle fragmented messages. -- The go.net io.Reader and io.Writer operate across WebSocket frame boundaries. - Read returns when the input buffer is full or a frame boundary is - encountered, Each call to Write sends a single frame message. The Gorilla - io.Reader and io.WriteCloser operate on a single WebSocket message. +Note: The go.net io.Reader and io.Writer operate across WebSocket frame +boundaries. Read returns when the input buffer is full or a frame boundary is +encountered, Each call to Write sends a single frame message. The Gorilla +io.Reader and io.WriteCloser operate on a single WebSocket message. diff --git a/examples/autobahn/README.md b/examples/autobahn/README.md index 68a7ea3..348a24a 100644 --- a/examples/autobahn/README.md +++ b/examples/autobahn/README.md @@ -1,13 +1,8 @@ -# Test +# Test Server -Clients and servers for the [Autobahn WebSockets Test Suite](http://autobahn.ws/testsuite). +This package contains a server for the [Autobahn WebSockets Test Suite](http://autobahn.ws/testsuite). -To test different code paths in the package, the test server echoes messages two ways: - -- Read the entire message using io.ReadAll and write the message in one chunk. -- Copy the message in parts using io.Copy - -To test the server, run it +To test the server, run go run server.go