You are not logged in.
Pages: 1
Hello,
i tested the project 31 (chat).
Is there any chance to run it under android?
If not, will php help?
Something like the following: Android App with IdHTTP-> php on external server for establish the websocket connection-> chat Server
regards, Andreas
Offline
Okay.
For testing purposes i tried to connect web based clients to the chat server.
All four scripts won't connect to the server.
The Server wrote every time "WebSocketProcessUpgrade failed as 400"
The only thing i have changed is: HttpServer.WebSocketsEnable(Server,'',true,false).Settings.SetFullLog;
I tried also: HttpServer.WebSocketsEnable(Server,'',false,false).Settings.SetFullLog;
Is it possible to connect a web client to the chat server? If yes, what do i need to change else?
Offline
Offline
I want to connect to the chat server with a browser based WebSocket client.
Many Browsers have this functionality.
Using Java script you can establish a connection to a WebSocket Server.
Something like this: http://www.websocket.org/echo.html
Most of the demos don't have encryption or compression so i set the following line in the server code:
HttpServer.WebSocketsEnable(Server,'',false,false).Settings.SetFullLog;
So the question:
Is the mORMot WebSocket compatible to the WebSocket that Server can provide in php with "socket_create()"
Offline
mORMot implements the WebSockets standard, so you can access its WS server from any kind of client.
Just use the text/JSON fomat for it.
There is a JavaScript HTML sample in our folder.
I still don't understand why PHP socket_create() is relevant in your case, since WebSockets is a layer about raw TCP sockets.
Offline
Pages: 1