Re: [naviserver-devel] Connect to a web socket in the background

2020-07-14 Thread Iuri de Araujo Sampaio
Thanks Gustaf, I’m going to uninstall the older version of TCLLIB. Yes it works! It’s more than enough! In fact, since your previous commit, last Sunday the weekend, I was able to understand the implementation "workflow" and aspects of writing a client app in the backend scene. I’m going

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-14 Thread Gustaf Neumann
On 12.07.20 02:14, Iuri de Araujo Sampaio wrote: However, when I run the first version of the code, and it returns an error related to: *Error: can't set "formMap": variable is array* * * /usr/local/src/ns-4.9.17/tcl8.6.8/library/http/http.tcl:return [string map $formMap $string]

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-12 Thread Iuri de Araujo Sampaio
The errors related to [dict] have been fixed, adding the following lines within websocket-procs.tcl … nsf::proc ::ws::client::open {url} { ... line 437 if {[dict exists $d path] ne ""} { set path [dict get $d path] append request_url /$path } if {[dict

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-12 Thread Iuri de Araujo Sampaio
… I've hit “send” button by mistake…. Hi Gustaf I’ve noticed you had uploaded a simple client interface to websocket-procs.tcl. https://bitbucket.org/naviserver/websocket/src/master/websocket-procs.tcl However, I hit

Re: [naviserver-devel] Connect to a web socket in the background

2020-07-12 Thread Iuri de Araujo Sampaio
Hi Gustaf, I’ve noticed you had uploaded a simple client interface to websocket-procs.tcl. https://bitbucket.org/naviserver/websocket/src/master/websocket-procs.tcl However, I hit another error related to [dict],

[naviserver-devel] Connect to a web socket in the background

2020-07-11 Thread Iuri de Araujo Sampaio
Hi there, My code's intended to open a websocket connection to the echo service, wait 400ms to ensure that the connection is really established and send a textual message, which should be echoed back by the echo service. The last part will be handling/parsing that message (i.e. TXT or JSON