MrSev7en / simple-websocket

Simple WebSocket is an HTML based project, using PIXI.js library to create a simple WebSocket server and client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple WebSocket (Server & Client)

🌐 Simple WebSocket is an HTML based project, using PIXI.js library to create a simple WebSocket server and client.

Functions

πŸ’» The project just draws a rectangle inside an canvas, but is a nice start to anyone that wants to learn how to use websockets.

  • Total of 3 servers (main server, express server & websocket server)
  • Compatibility with Localtunnel (package already built in)
  • Mobile support (tested on chrome on android 10)

Issues

πŸ—οΈ Collaborate with me sending issues

Using

Without Localtunnel

yarn dev

With Localtunnel

yarn dev

lt --port 80
lt --port 3000

🚧 Using Localtunnel you must access game site using HTTP, and set url in config.js file at:

public/assets/js/game/etc/config.js

Replace empty field with your Localtunnel port 3000 url.

Socials

🐦 Twitter: @MrSev7en
πŸ“· Instagram: @MrSev7en

License

This project was based on MIT license.

About

Simple WebSocket is an HTML based project, using PIXI.js library to create a simple WebSocket server and client.

License:MIT License


Languages

Language:JavaScript 50.4%Language:TypeScript 34.9%Language:HTML 13.5%Language:CSS 1.1%Language:Shell 0.1%