Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: c38ff19f30f6cce23da00a6dea22515151ec46ce
Ticket: 0dd2a66f089e47c93b6f089e16e1fe6db41faf32
websocket server example and a bug found
User & Date: anonymous 2015-09-17 17:01:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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 of 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.
    
  5. foundin changed to: "tcl 8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "websocket"
  15. title changed to: "websocket server documentation and a bug"
  16. type changed to: "Bug"