GithubHelp home page GithubHelp logo

netasmcom / socketify Goto Github PK

View Code? Open in Web Editor NEW
78.0 1.0 13.0 1.29 MB

Raw TCP and UDP Sockets API on Desktop Browsers

Home Page: https://Socketify.net

License: MIT License

JavaScript 57.12% Go 37.73% HTML 1.84% CSS 3.31%
chrome chrome-extension firefox firefox-addon firefox-extension websocket socket sockets socket-io tcp

socketify's Introduction

Socketify

TCP and UDP Sockets API on Chrome, Firefox and Safari desktop browsers with extensions via native messaging.

What? A cross-platform, cross-browser extension for desktop browsers that injects simple & easy-to-use UdpPeer, TcpServer and TcpClient sockets API into page window, available in plain JavaScript.

Why? I was prototyping a web-based multiplayer-online game then realized that WebSocket and WebRTC standard APIs are not flexible enough to achieve custom networking solutions when needed. After that I took the challenge and decided to provide raw UDP and TCP sockets with a simple API so that people can implement their own network transport layer on top. Especially for real-time games, you'd better use thin UDP transport layer to fight with network congestion!

How? Using Native Messaging APIs on Chrome↗ and Firefox↗, we are exchanging messages with native host app (Messenger) so it does all socket operations for us.

Getting Started

TODO

  • Native Messaging Host
  • Socketify API
  • Chrome Extension
  • Firefox Porting
  • Installation Guides
  • API Documentation
  • Unity WebGL Support
  • Extension Popup Menu
  • Host App Installer
  • Safari Extension
  • Encryption Support

socketify's People

Contributors

thusspokenomad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

socketify's Issues

Unable to install on Mac

Installation doesn't seem to work on Mac OS 10.14.4. Below is the output of ./Messenger install -chromeExtID=abc -firefoxExtID=xyz

Also, why make it mandatory to install the extension for both Chrome and Firefox? Would be great if one could install on only one browser.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x11113d3]

goroutine 1 [running]:
main.read(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	~/Downloads/Socketify-master/Messenger/main.go:42 +0xc3
main.main()
	~/Downloads/Socketify-master/Messenger/main.go:100 +0x263

Not working on linux

Messenger installation on linux fails. Perhaps the documentation should specify the platforms this works on. Thanks!

linux installation not implemented yet

Release pre-built Messenger?

I read the install steps and I saw that it involves downloading go and go packages and then building. If someone built the exe and put it on GitHub releases, will other people be able to just download the exe instead of building it themselves?

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.