topfreegames / pitaya

Scalable game server framework with clustering support and client libraries for iOS, Android, Unity and others through the C SDK.
MIT License
2.35k stars 482 forks source link

How do I receive http requests on the pitaya server #403

Closed chen221260 closed 5 months ago

chen221260 commented 5 months ago

when i use http.ListenAndServe(fmt.Sprintf(":%d", 1600), nil) it log error: tried to add an acceptor to a backend server what should i do?

felipejfc commented 5 months ago

this error is not related to your HTTP server. as the log clearly pointed out, you tried to add a pitaya acceptor to a backend server. Remove the acceptor and it will work