You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, that's not an issue to libwebsockets, but to me.
libwebsockets is very well thought and made. Congrats and thanks for that.
3 days I'm browsing examples, compile run and try them ...
Since I'm new to websockets I got a far understanding of it.
The issue I have is, get started writing a server that responds to an existing client.
The client app is artisan-scope sending some JSON requests and expecting an answer.
I tried to use the echo server example to get connected to the client and hoped I can see what the client is sending.
I got connected, but I'm to stupid to filter out the data coming from the client.
any hint's how I can do that.
Since libwebsockets does a lot in the background and uses mostly it's own types for variables and functions, I've no clue how to get to see what I want to see.
My understanding so far is, I have to implement the protocol the client comes with.
I have to get the data he send, and I have to respond the requests.
Now I need to see:
What protocol the client comes with. So I can implement that protocol
Need to extract the JSON data he send in order to respond to them.
Now my question
What's the "libwebsocket-way" to do that
thanks for your patience
Ju
The text was updated successfully, but these errors were encountered:
Modify LWS_CALLBACK_RECEIVE in the protocol to dump what it is sending, what to do about the protocol sending depends on the required rules for the protocol of when to send stuff.
sorry for late answering, and thanks for the pointer.
I had to ventilate my brain a bit after digging through all that code.
I'll have a look at that examples and follow your suggestion.
Sorry, that's not an issue to libwebsockets, but to me.
libwebsockets is very well thought and made. Congrats and thanks for that.
3 days I'm browsing examples, compile run and try them ...
Since I'm new to websockets I got a far understanding of it.
The issue I have is, get started writing a server that responds to an existing client.
The client app is artisan-scope sending some JSON requests and expecting an answer.
I tried to use the echo server example to get connected to the client and hoped I can see what the client is sending.
I got connected, but I'm to stupid to filter out the data coming from the client.
any hint's how I can do that.
Since libwebsockets does a lot in the background and uses mostly it's own types for variables and functions, I've no clue how to get to see what I want to see.
My understanding so far is, I have to implement the protocol the client comes with.
I have to get the data he send, and I have to respond the requests.
Now I need to see:
What protocol the client comes with. So I can implement that protocol
Need to extract the JSON data he send in order to respond to them.
Now my question
What's the "libwebsocket-way" to do that
thanks for your patience
Ju
The text was updated successfully, but these errors were encountered: