Michael Müller Anywhere Member Licensed User Longtime User Sep 6, 2021 #1 Hello, whe I use the websocket Client Library, the connection string I receive with the demo-project with me own Server App (written in VB6) is ok: Code: GET /ws HTTP/1.1 Host: xxxxxxxxxxxxx.myfritz.net:4750 Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Key: asIBtB/kYe8zBRS29Ewv1A== Sec-WebSocket-Version: 13 But when I try to send a text, every send-request I receive another string. I try to send the string "test" with: Code: wsh.ws.SendText( "test") My Server receives lines like this (every line is one attempt): „±UYÅo&- „âÑ@j–´3 „yG¬ð"ß„ „¨ÏÃÕܪ°¡ What is wrong? Thank you!
Hello, whe I use the websocket Client Library, the connection string I receive with the demo-project with me own Server App (written in VB6) is ok: Code: GET /ws HTTP/1.1 Host: xxxxxxxxxxxxx.myfritz.net:4750 Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Key: asIBtB/kYe8zBRS29Ewv1A== Sec-WebSocket-Version: 13 But when I try to send a text, every send-request I receive another string. I try to send the string "test" with: Code: wsh.ws.SendText( "test") My Server receives lines like this (every line is one attempt): „±UYÅo&- „âÑ@j–´3 „yG¬ð"ß„ „¨ÏÃÕܪ°¡ What is wrong? Thank you!
Erel B4X founder Staff member Licensed User Longtime User Sep 8, 2021 #3 Why write a server with vb6??? It will never be as powerful as a B4J server which is based on the excellent Apache Jetty project. Upvote 0
Why write a server with vb6??? It will never be as powerful as a B4J server which is based on the excellent Apache Jetty project.
Michael Müller Anywhere Member Licensed User Longtime User Sep 8, 2021 #4 My VB6 application needs the data directly from the Android app. That is why the server is built into the Windows VB6 application. This server function has been working very well for my application for almost 20 years. In the meantime I use your "AsyncStreams" without a prefix for the app. That works wonderfully .... This also settled my request. Thanks very much. By the way: The VB6-application is used by rescue coordination centers. My app sends the position and the current status from the ambulance-vehicle to the coordination center, so they can choose the best vehicle (shortest way and free). Upvote 0
My VB6 application needs the data directly from the Android app. That is why the server is built into the Windows VB6 application. This server function has been working very well for my application for almost 20 years. In the meantime I use your "AsyncStreams" without a prefix for the app. That works wonderfully .... This also settled my request. Thanks very much. By the way: The VB6-application is used by rescue coordination centers. My app sends the position and the current status from the ambulance-vehicle to the coordination center, so they can choose the best vehicle (shortest way and free).