[SOLVED] LUBE server disconnect callback by unknown reason

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
reindeernix
Prole
Posts: 2
Joined: Sun Jul 14, 2013 3:48 am

[SOLVED] LUBE server disconnect callback by unknown reason

Post by reindeernix »

Hi, first time posting on the forum ;)

I am learning how to use LUBE and I have created a clientside and serverside so far which connects to eachother and exchanges information.
But the problem is that after not doing anything in the clientside part for 10 sec or so, the server runs the disconnect callback.

Even though it runs the disconnect callback the client is still connected which can be seen since it still sends data to the server.

I want to know what is causing it and how I can fix it(if possible).

I have uploaded the serverside and clientside.

Thanks in advance :awesome:
Attachments
movementtestclient.love
The whole clientside program is inside main.lua and the libraries are lying besides the file.
(10.28 KiB) Downloaded 68 times
movementtestserver.love
The disconnect callback can be found in main.lua where everything is except the libraries.
(9.83 KiB) Downloaded 66 times
Last edited by reindeernix on Sun Jul 14, 2013 6:17 pm, edited 1 time in total.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: LUBE serverside runs disconnect callback by unknown reas

Post by raidho36 »

Failure to respond to servers' ping causes disconnection, according to the LUBE manual.
User avatar
reindeernix
Prole
Posts: 2
Joined: Sun Jul 14, 2013 3:48 am

Re: LUBE serverside runs disconnect callback by unknown reas

Post by reindeernix »

raidho36 wrote:Failure to respond to servers' ping causes disconnection, according to the LUBE manual.
Thanks raid, I made it work by making the client ping every 3 seconds and the server ping every 9 seconds :3
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 4 guests