Giter Site home page Giter Site logo

nathanielgraham / mojo-poker Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 4.99 MB

Poker Client and Server built with the Mojolicious Framework

License: Other

Shell 0.29% Perl 45.50% CSS 8.56% JavaScript 26.02% HTML 0.21% Raku 19.41%
poker server mojolicious client perl poker-game-server

mojo-poker's People

Contributors

nathanielgraham avatar

Stargazers

 avatar  avatar

Forkers

fapulito

mojo-poker's Issues

Websocket close after login

Hello Sir,
After login web socket is closing.
script modification is done with valid username and password and bookmark provided for same.

    $tx->send('["login", { "username": "test" , "password": "test" }]');
 
 # $tx->send('["login_book", {"bookmark":"dc17c0317495691235faf2ba1063278f08e2a524"}]');

Script output

perl wsshell.pl

server: ["login_res",{"block":{},"level":2,"remote_address":"127.0.0.1","handle":"test","last_visit":1558971007,"username":"test","birthday":null,"bookmark":"8bc55bb6f39c7fc446dccac859e5e2749821ba80","login_id":24,"invested":{"1":2000},"success":1,"chips":{"1":2000},"user_id":2,"email":null,"ring_play":{}}]

WebSocket closed with code 1005.
WebSocket closed with code 1005.

Getting no clue about the issue can you help.

Ubuntu Server 22.04

Installed fine, but on sudo systemctl start mojopoker.service I get :

Job for mojopoker.service failed because the control process exited with error code.
See "systemctl status mojopoker.service" and "journalctl -xeu mojopoker.service" for details.

There's nothing interesting in details.
This works only with 16.04 ?

EDIT:
Actually there are some details, there seems to be a problem with route, if I comment out those lines with it, then it starts, but when accesing a page on port 3000, I get a webpage saying "raptor not found"

Oct 24 01:50:30 instance-20221024-0111-poker systemd[1]: Starting Mojo Poker...
Oct 24 01:50:31 instance-20221024-0111-poker mojopoker.pl[1454]: Can't locate object method "route" via package "Mojolicious::Routes::Route" at /opt/mojopoker/lib/Ships.pm line 49.
Oct 24 01:50:31 instance-20221024-0111-poker systemd[1]: mojopoker.service: Control process exited, code=exited, status=255/EXCEPTION
Oct 24 01:50:31 instance-20221024-0111-poker systemd[1]: mojopoker.service: Failed with result 'exit-code'.
Oct 24 01:50:31 instance-20221024-0111-poker systemd[1]: Failed to start Mojo Poker.
Oct 24 01:50:31 instance-20221024-0111-poker systemd[1]: mojopoker.service: Consumed 1.256s CPU time.

EDIT 2:
Never mind, I found the solution to that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.