Questions tagged [websocket]
A bi-directional WebSocket protocol makes possible more interaction between a browser and a web site, facilitating creation of real-time games.
109 questions
1
vote
0
answers
47
views
How do I resolve glitches in grid-based movement due to lag in a network game where player input is handled on a fixed schedule?
Background
I am creating a networked web game using NodeJS, Express, and SocketIO (Note, however, that this question is agnostic to implementation details). I have implemented a client-server ...
0
votes
0
answers
66
views
Should I be adding a database functionality for my game rooms?
I'm a little confused on when it's needed to bring in Mongo or MySQL in a web browser multiplayer card game.
Here's my plan so far: I'm using React, Node.js, Express, and Socket.io. I'm having the ...
1
vote
1
answer
139
views
LibGDX websockets GWT html app cant find source to WebSocket class
I'm using this library to connect to websocket server:
https://github.com/czyzby/gdx-lml/tree/master/websocket
It's working on android/desktop applications, but when compiling to html gwt app with ...
0
votes
1
answer
734
views
Multiple Node/Express/Socket.io servers for game lobbies?
Building a multiplayer game on the web that will be able to handle thousands of players at once, separated into independent lobbies/sessions. There may be 20 players in one lobby, 10 in another, 30 in ...
0
votes
1
answer
513
views
How to implement WebRTC in a Godot project that already has communication through WebSockets?
I'm currently working on a fast-paced multiplayer sports game using Godot. The players' movements and actions are already being synchronized with WebSockets and Channels using a Node.js server. I now ...
0
votes
0
answers
88
views
How do I handle multiple matches for a multiplayer game based on web?
In a multiplayer chess game based on web where the server must validate the plays, store the current game state and provide the gameboard info to be rendered on client side, among other things related ...
0
votes
1
answer
366
views
P2P + Authoritative server for Web based game, how to combine?
I'm working on an online Web RPG game (jRPG) with a map, that characters can go around.
Also, an important part, is that each player has his own world and each player can invite his friends to play on ...
0
votes
0
answers
50
views
Signalling time-expiry to clients in a browser-based multiplayer game
I'm trying to develop my first ever browser-based multiplayer game that utilizes my own websocket server which has no multi-threading capability.
It will be a game where players try to be the fastest ...
0
votes
0
answers
60
views
WebRTC - Protocols and Getting the Timing Right in a Racing Game
I am trying to work out the protocols to set up a game between 2 players and the ideas behind getting the timing right between those two players in a running race game. Since this is obviously a timed ...
0
votes
1
answer
727
views
What is the best rate at which to send updates to clients for a first person shooter NodeJS WebSocket server?
I developed a multiplayer FPS using WebGL, Nodejs and WebSockets.
So far it is running great.
I am currently using setInterval(sendPlayerPositions, 16); to send updates to WebGL clients.
Ideally I ...
0
votes
1
answer
194
views
Authoritative game server and database storage
In an authoritative game server working with websockets, should you store every action to the database before sending the response to the client? The risk is the slow response time.
Or should the ...
0
votes
1
answer
263
views
Web Game Security - AntiBot
I'm going to develop a real-time browser game using NodeJS in backend for a fast WebSocket, but I'll both prevent bots and other cheats, so my frontend JS might be very advanced.
I'm experienced with ...
0
votes
0
answers
318
views
WebSocketSharp For Unity
I have integrated WebSocketSharp with Unity 2018.4.14f1 and it works well with Android and IOS. I wanted to know that most of the other socket.io plugins for unity have a wrapper of Class Packet over ...
0
votes
1
answer
448
views
Connecting clients with UDP and WebSocket connections
I'm in the process of making a physics intensive multiplayer game. Naturally I use a UDP to transfer packets regarding rigidbodies between client and an authoritative server.
However non-essential ...
1
vote
1
answer
106
views
How to connect Google Domain to AWS ELB url [closed]
I have recently uploaded a server with node js in my AWS environment and added a HTTPS listener in my load balancer. Also generated a certificate using ACM(AWS certificate manager) for my google ...
0
votes
1
answer
298
views
How to launch Libgdx cross-platform (Android, HTML, Desktop) multiplayer client with socket?
So i'm struggling with making my cross-platform client side to work, specifically on HTML part.
I have java server that is responsible for all the controls and events, and I control it via netty-...
1
vote
0
answers
1k
views
Using UDP vs Websockets
I am running a Unity Game on a PC (for development purposes) and then on an Android phone (for production). I need to send data to the Game continuously from a WiFi enabled microcontroller (Esp32). Is ...
1
vote
2
answers
935
views
Should I compress WebSocket payload data in a game where latency matters?
I have started work on a new game project where users are in an open environment and fight each other in a fast-paced shoot-out. I know that compressing all of the WebSocket's payload data using zlib ...
0
votes
2
answers
262
views
websockets authentication security
Im doing a online game havingclient, js html5, and server, nodejs with websockets.
I've read some blogs about websockets security, and its limitations, but no real implementation or example.
Could ...
0
votes
0
answers
418
views
The websocket messages in my online game are being served too slow
Im attempting to make a online game in python, though I have ran into a problem. Basically I want the game to be playable in many regions, but the websockets are to laggy to be played in farther ...
1
vote
1
answer
1k
views
iOS 9.3.5 WebSocket connection always closes with code 1006
I'm working on an app that uses a LabVIEW implemented server on the backend that is proxied via apache. It works great on desktops and android devices but on iPhone and iPad the websocket connection ...
2
votes
0
answers
666
views
Persistent realtime game authentication (JWT, Passport)
Context
I am building a MMO game in HTML5 with canvas.
I use NodeJS on server & JS from scratch on client.
I also use socket.io to manage realtime.
The game is persistent & each player keep ...
3
votes
3
answers
22k
views
Websockets Server for Unity3d
Is there any way to implement websocket server, which I can run inside Unity3d standalone linux instance? I gonna connect to it directly from webpage (pure javascript, not Unity3d WebGL). I've tried ...
2
votes
3
answers
813
views
How to securely submit a score?
We have an app with several mini-games in it and in each a highscore can be achieved. The score gets submitted by requesting an endpoint and passing the score as a json in the body. How can we be sure ...
1
vote
2
answers
357
views
Determing winning on the server side or client side?
I am using JavaScript + Node.js+Websockets to develop a multiplayer card game. In my single game version the Win determining calculation is done on the client side (of course) with a function.
It ...