Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: 3aa0e75478377c90bfa1b80c7ed459ce110b22ee
Ticket: 4565d1598d08bcabd1402922b05c804a107b3991
Type change from "request" in 1.3.1 to "connect" in 1.4
User & Date: anonymous 2015-04-16 08:01:51
Changes

  1. icomment:
    The change was intentional, in the sense of making server and client notifications more consistent, but unintentional with regards to breaking the API.  The incompatibility can be easily fixed with the following patch.  The documentation should be changed marking the event as deprecated.
    
    diff --git c/websocket.tcl i/websocket.tcl
    index a35f1b1..ef8b642 100644
    --- c/websocket.tcl
    +++ i/websocket.tcl
    @@ -1147,6 +1147,9 @@ proc ::websocket::takeover { sock handler { server 0 } { info {} }} {
         Liveness $sock
     
         # Tell the WebSocket handler that the connection is now open.
    +    if {!$server} {
    +	Push $sock request $info;
    +    }
         Push $sock connect $info;
         
         ${log}::debug "$sock has been registered as a\
    
  2. login: "anonymous"
  3. mimetype: "text/plain"
  4. username: "Adrián Medraño Calvo <[email protected]>"