Hello, I'm having trouble after update naviserver with shell, it shows

>
> <% # Get hostname without protocol (i.e. "localhost") set host [lindex
> [split [ns_conn location] "/"] 2] set wsConfigPath "ns/server/[ns_info
> server]/module/websocket/shell" set shConfigPath "ns/server/[ns_info
> server]/module/nsshell" # Get WebSocket Protocol (i.e. "ws") set wsProtocol
> [expr {[ns_conn protocol] eq "http" ? "ws" : "wss"}] # Get Shell URL from
> module (i.e. "nsshell") set shellURL [ns_config $wsConfigPath urls] set
> heartBeat [ns_config $shConfigPath kernel_heartbeat 4] # Generate Base URL
> (i.e. "localhost/shell") set baseURL [string trimright $host/$shellURL] #
> Generate WebSocket URL (i.e. ws://localhost/shell/connect) set wsUri
> $wsProtocol://$baseURL/connect # Generate kernelId # Combine uuid with
> connection id and encrpyt with sha-1 set kernelID [ns_sha1 "[ns_uuid]
> [ns_conn id]"] # Remember ns_conn settings from the start of this shell #
> in a nsv variable for this kernel. foreach subcommand { acceptedcompression
> auth authpassword authuser contentfile contentlength contentsentlength
> driver files flags form headers host id isconnected location method
> outputheaders peeraddr peerport pool port protocol query partialtimes
> request server sock start timeout url urlc urlv version zipaccepted } {
> nsv_set shell_conn $kernelID,$subcommand [ns_conn $subcommand] } # # Check,
> if we are connected via the WebSocket interface or via XHR # if
> {${shellURL} ne "" && [string match ${shellURL}* [ns_conn url]]} { ns_log
> notice "nsshell uses WebSocket interface" # # Flag WebSocket usage by
> setting xhrURL empty. # set xhrURL "" # If kernelID is specified on URL,
> change kernelId to the one # specified in the URL if {"kernel" in [ns_conn
> urlv]} { set kernelID [string trim [lindex [ns_conn urlv] end]] # KernelID
> cannot empty if {$kernelID eq ""} { ns_returnredirect [ns_conn
> location]/$shellURL } } else { # If kernel isn't specified on URL, redirect
> with the generated kernelId ns_returnredirect [ns_conn
> location]/$shellURL/kernel/$kernelID } } else { ns_log notice "nsshell uses
> XHR interface" # # Flag XHR usage by setting wsUri empty. # set wsUri ""
> set xhrURL [ns_conn url] # If kernel is specified on URL, change kernelId
> to the URL one set query_kernelID [ns_queryget kernelID ""] if
> {$query_kernelID eq ""} { ns_returnredirect "[ns_conn
> url]?kernelID=$kernelID" } else { set kernelID $query_kernelID } } %>
>

In the browser window
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to