Topic-icon MySQl schema

More
11 Apr 2020 00:07 - 11 Apr 2020 00:09 #45936 by Tyrant917
Tyrant917 replied.
Thanks for the help sp0ck. Your previous suggestions worked. I now have a running pokerth_server that's not dependent on MySQL. And fidgeting with the Avatar nickname setting on the client side works as well.

I'm now onto the Spectator tool. I successful compiled it and it's being served from an Apache2 server running on the same VM as the pokerth_server (shouldn't be a problem, right?). I'm getting an "object Event" error as I'm trying to log in as Guest Player. Suggestions?

Let me know if you want me to create a separate thread for this new issue.

Please Log in or Create an account to join the conversation.

More
11 Apr 2020 03:47 #45947 by Tyrant917
Tyrant917 replied.
I THINK I got a little further now. Looks like "ServerUseWebSocket" value is turned off by default in config.xml. After turning that on, I'm now getting "Invalid server", which gives me a little more clue if I look at the code...

Please Log in or Create an account to join the conversation.

More
13 Apr 2020 15:32 - 13 Apr 2020 15:44 #46008 by sp0ck
sp0ck replied.
Sorry for late reply - I really missed your last post:
        <ServerUseWebSocket value="1" />
        <ServerWebSocketPort value="7236" />
        <ServerWebSocketResource value="/pthsocketserver" />
        <ServerWebSocketOrigin value="" />

... in config.xml of server.

In pokerth-live it should be:

Please check https://github.com/pokerth/pokerth-live/blob/001-webpack/inc/net/neteventhandler.js#L25

IP and port are mentioned there.

... as in https://www.pokerth.net/community/17-installation/13860-pokerth-live?start=6


in the compiled pokerth-live.min.js it should look like:
new WebSocket("ws://<ip/hostname>:7236/pthsocketserver")


EDIT: it is not ssl - but you can try a reverse-proxy with your apache2 in order to pass wss requests to ws - if really needed.
PokerTH server itself is not yet capable of ssl encrypted web-socket connections.

Please Log in or Create an account to join the conversation.

More
22 Apr 2020 12:35 #46131 by tucs
tucs replied.
I've installed PokerTH server locally succesfully and I would like to install the Spectator tool too.
I've followed several posts on the forum and I arrive at a point where I encounter also the same problem: "Invalid server".
Unfortunately I am using Ipv4 and it seems like the WebSocket is binding on Ipv6 only.

Please Log in or Create an account to join the conversation.

More
22 Apr 2020 14:50 #46133 by sp0ck
sp0ck replied.

tucs wrote: Unfortunately I am using Ipv4 and it seems like the WebSocket is binding on Ipv6 only.


I stumbled across the same phenomen but was able to use IPv6.

I will take a look into server code.

Regards.

Please Log in or Create an account to join the conversation.

More
23 Apr 2020 10:47 #46146 by tucs
tucs replied.
I was able to update the code to make it bind on ipv4 but still get en 'Invalid Server' message. However in server_messages.log I can see the connection: Accepted connection - session #

Hope it helps.


In file serveracceptwebhelper.cpp:
L48 replace:
ServerAcceptWebHelper::Listen(unsigned serverPort, bool /*ipv6*/, const std::string &/*logDir*/, boost::shared_ptr<ServerLobbyThread> lobbyThread)

by

ServerAcceptWebHelper::Listen(unsigned serverPort, bool ipv6, const std::string &/*logDir*/, boost::shared_ptr<ServerLobbyThread> lobbyThread)

L66 replace
m_webSocketServer->listen(serverPort);

by

if (ipv6) {
m_webSocketServer->listen(serverPort);
} else {
m_webSocketServer->listen(boost::asio::ip::tcp::v4(), serverPort);
}

Please Log in or Create an account to join the conversation.

Champions of

PokerTH - live

The PokerTH spectator tool.

Member Login

 advert
NOTE! This site uses cookies and similar technologies.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information

We use cookies to personalize content and ads to offer features for social media and analyze the number of hits on our website. We also provide information about your use of our website to our partner for social media, advertising and analysis on.
http://www.google.com/intl/de/policies/privacy/partners/