When im testing the game i have two users connected. Then they start to connect and disconnect every time by no reason.
Then i close PIE, and when i try to play again and the connection hangs and the editor crashes
Im working with mobile in mind, so i am going to wait for the fix . By the way have you considered using socket as singleton instead//additionally to component?
If you want to use something not inheriting a uobject or wish to control itās life cycle, consider using the c++ base class FSocketIONative https://github.com//socketio-client-ue4#c-fsocketionative, Itās still uses ue4 native types so the mental leap shouldnāt be that hard. The USocketIOClientComponent uses this class under the hood and you can look into that class for example implementation.
That said Iāve seen some pings for people wanting to spawn a UObject type in blueprints, maybe expose a singleton to create a component without attachment? Iād be wary to complicate the UX too much though. Iād generally recommend dropping an actor into the world with the component and forwarding your reference to the component elsewhere. Or if youāre loading levels, use level streaming with a top level that is permanently loaded.
Thanks for your plugin.
I connect to my own server using ip address like:http://0.0.0.0:0
And it worked in windows.
In the case of IOS platform,though I check the āAllow web connection to non-https websitesā,it doesnt work.Could you please give me some advise to solve the problem.Thanks.
Due to popular demand Iāve now added a way to statically construct a component correctly which should work largely anywhere, documentation for the new feature can be found here: https://github.com//socketio-ā¦ient-component
Dear Folks,
unknowing if there is any information about it already (I found none), I post here in desperation for help
Right now I have a setup working with the plugin between two unreal projects to transmit data (pictures as binary, text and number information as jsonā¦). But it wont emit data that seems bigger than only a bit of text. And also it does not work if I repeatedly emit smaller things.
This is my setup to transmit images I collect. The image itself works great with the same setup without a loop.
But when I try this, I can see in the server console that it sends 2 or 3 times and then disconnects the client.
After that I have a ghost client that connects and disconnects. With other data I had the problem, that the ghost client kept reconnecting, even if I closed Unreal (it somehow kept a process running in the background with 20% CPU usage, and multiplied itselfā¦)
At this Point I just have no idea where to start since I have no Idea what and where the Error comes from. Do I need to make another setting in the plugin? I use the node server that came with the chat server example, is that wrong?
I really appreciate any help or wink in the right direction!!
About the ghost client. do you have the connect options as automatic?
you use gamemode Begin and End? also looks like scooped connections has some issues.
I suspect it has to do with the standalone asio having some bug in the earlier v1.11 that is used in plugin v1.0. An early test inside https://github.com//socketio-client-ue4/tree/issue-126 which upgraded asio (to v1.13) seems to work with large data again (Iāve been testing it with raw audio binaries interwoven). If you want to try the unstable build, pull from issue-126 branch and compile. Iāll be merging the potential fix into a stable build when I finally address issue-126 (reconnection cycle problem).
I canāt connect to server. Event ConnectionProblem is happened, but event Connect (or Disconnect) isnāt. Actor with SocketIOClient Component place at level, server is ok too, I suppose. How can I to find out reason of this problem? What can I do? http://prntscr.com/ow3b5j
Nice! Likely only possible with statically allocated components, but this is a good catch. Open a pull request on https://github.com//socketio-client-ue4 with the change and Iāll merge it in