How to do it? I’m new. I thought that I installed the extension and use it ![]()
Please add the githab guide to the readme. It is useful to many, since without crutches in any way.
How to do it? I’m new. I thought that I installed the extension and use it ![]()
Please add the githab guide to the readme. It is useful to many, since without crutches in any way.
Here you go: GitHub - britzl/defold-websocket: DEPRECATED - Use https://github.com/defold/extension-websocket instead! · GitHub
Thanks! Works! ![]()
Hello!
Does not work on the android (USB modem and wi-fi too)
MacOS Mojave 10.14.5
Android 9.0 (Asus Zenfone M1)
How are you testing on mobile? I’m guessing that you’ve downloaded dmengine.apk, installed that and target it? This won’t work. The Defold-Websocket library uses a native extension, meaning that it contains native code that needs to be compiled into a custom engine for you. You must bundle a debug version and install it and target that version while you iterate on your game.
wow… where can I read about it?
Where can you read about what? How to bundle for mobile?
This is mentioned here: defold-websocket/README.md at master · britzl/defold-websocket · GitHub
If you try on a websocket server of your own or something like Colyseus it will work as expected.
I use websockets in about 10 html5 projects, including Corona SDK (html5). Problems with Sec-WebSocket-Protocol never existed.
Crash even when using my server, for example wss://words.webday.ru/wsm
How can I prevent the transfer of the protocol in html if I do not want to specify it? This is an optional parameter. If I use any protocol, but in html5 the value is still “binary”
By the way, for some reason, in the example, instead of the protocol, you specify: ws / wss
Headers:
From HTML5
From defold simulator (macos)
On the server I use the most popular solution for nodejs: https://www.npmjs.com/package/ws
There have never been any problems
Let me take a look at this again and see if anything can be done.
Yes, that’s how it is supposed to work:
But then there is confusion. Through the simulator headers = ws / wss / nil.
And through html always = binary
Yes, I understand the confusion. This is how it works:
Hello!
What about support of arm64-android platform for this extension? There are problem with defold-luasec dependency.
This is about another extension (defold-luasec), perhaps it’s possible to enable issues on that fork, @britzl?
I checked my server returns in the headers “binary” too. But crash happens anyway
even has time to accept the message, but breaks off
That is, with a handshake, everything is fine! But when receiving a message = crash
I’ve released a new version of luasec with openssl compiled for arm-64: Release Defold-LuaSec 1.1.0 · britzl/defold-luasec · GitHub
Strange. @selimanac and @endel have you been able to connect from an HTML5 Defold client to a Colyseus server?
I just build tic-tac example as html5 and test it on my local environment. Seems like it is working. To be honest, I didn’t understand the problem here.