Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: fc405ef36e32aee2cf57f3af0a84ae68915b0ba4
Ticket: 0dd2a66f089e47c93b6f089e16e1fe6db41faf32
websocket server example and a bug found
User & Date: anonymous 2015-09-17 17:02:55
Changes

  1. assignee changed to: ""
  2. comment changed to:
    I think that the websocket library requires an example of a websocket server.
    
    I attach to this message an example. It could be interesting for other users.
    
    I also found a bug. At the end of the  ::websocket::validate procedure it should be included this code:
       if {![dict exists $res protocols]} {
            dict set res protocols [list]
        }
    
    In my attachment, the websocket.tcl file has this change. Without this change the server example doesn't work.
    
  3. login: "anonymous"
  4. mimetype: "text/plain"
  5. title changed to: "websocket server example and a bug found"