Skip to content

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

License

Notifications You must be signed in to change notification settings

MrSev7en/simple-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks