Subject Re: Error in websocket
From Boris Borzic <bb> <Boris Borzic <bb>>
Date Tue, 28 May 2019 16:03:18 +0200
Newsgroups xb2net

Robert Diaz <> wrote in news:srgbec7bywlnyc2.280520190930@daz17:

> osock:send('some message')// confirmbox,
> crecv:=osock:recv()
> //next line of code,should be executed after getting response from
> client. without receiving response from client next line of code is
> executing after osock:recv() execution. then crecv becomes nil
> 'peer did not respond with pong' error is getting in server.

Are you able to run the WebSocket samples included with Xb2.NET?

server-side (run WEBSERVE.EXE):
            WS_Echo() - found in WEBSERVE.PRG
            WS_Stream() - found in WEBSERVE.PRG
            WS_Chat() - found in WSCHAT.PRG

client-side:
            Xbase++ client:
                        see WSCLIENT.PRG

            Web browser client:
                        ..\www_root\WSChat.htm
                        ..\www_root\WSEcho.htm

--
Best regards,
Boris Borzic

http://xb2.net
http://sqlexpress.net
industrial strength Xbase++ development tools

Recent messages in this thread
 
-# Error in websocket Robert Diaz <> 28-May-2019 03:30 am
.-# Re: Error in websocket (Current message) Boris Borzic <bb> 28-May-2019 10:03 am
..-# Re: Error in websocket Robert Diaz <> 29-May-2019 01:40 am
...-# Re: Error in websocket Boris Borzic <bb> 29-May-2019 09:53 am
....-# Re: Error in websocket Robert Diaz <> 17-Jun-2019 01:28 am
.....-# Re: Error in websocket Boris Borzic <bb> 17-Jun-2019 09:43 am
......-# Re: Error in websocket Robert Diaz <> 19-Jun-2019 12:50 am
.......-# Re: Error in websocket Robert Diaz <> 19-Jun-2019 07:18 am
........\# Re: Error in websocket Boris Borzic <bb> 19-Jun-2019 08:55 am