remark about framing in example documentation
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/7ba3196d Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/7ba3196d Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/7ba3196d Branch: refs/heads/1843-feature-bigcouch Commit: 7ba3196d0da70ebfdd5b2b43adf3f11e850d972a Parents: ecb1eba Author: Åukasz Lalik <[email protected]> Authored: Wed Dec 25 13:51:39 2013 +0100 Committer: Åukasz Lalik <[email protected]> Committed: Wed Dec 25 13:51:39 2013 +0100 ---------------------------------------------------------------------- examples/websocket/websocket.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/7ba3196d/examples/websocket/websocket.erl ---------------------------------------------------------------------- diff --git a/examples/websocket/websocket.erl b/examples/websocket/websocket.erl index 7039e42..3fcc1f5 100644 --- a/examples/websocket/websocket.erl +++ b/examples/websocket/websocket.erl @@ -41,7 +41,9 @@ % [5]: Pass controll to messages handling loop. From this moment each message received from client % can be handled... % [6]: ...here as Payload. State is variable intended for holiding your custom state. ReplyChannel -% is the same function as in [3]. +% is the same function as in [3]. +% Notice! Payload is list of messages received from client. Websocket framing mechanism +% concatenates messages which are sent one after another in short time. % [7]: Print payload received from client and send it back % [8]: Message handling function must return new state value start_link() ->
