Coder Social home page Coder Social logo

redpointarchive / netcode.io-browser Goto Github PK

View Code? Open in Web Editor NEW
292.0 24.0 24.0 1.7 MB

Browser extensions which enable the use of netcode.io (secure UDP) prior to adoption in web browsers

JavaScript 16.29% PowerShell 7.03% C# 19.65% HTML 26.28% Go 30.36% Dockerfile 0.40%
net-coders dedicated-server udp browser-extension netcode-io

netcode.io-browser's People

Contributors

gafferongames avatar hach-que avatar mreinstein 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

netcode.io-browser's Issues

Golang server getting InvalidConnectToken

Hi,

There seems to be a mismatch in the implementation when using the Golang server. It seems to work okay when using the Golang client and the Golang server but replace the Golang client with the netcode.io browser plugin and there are problems.

I am currently getting the error in the JS console:

"State is InvalidConnectToken"

I am using the Netcode.io installer that was provided on the link and the JS code sample on the demo website. I am running the netcode.io Golang server example. I did get another error before hand which was related to the string not able to be decoded but I resolved that, but this one has stumped me.

Webassembly support

Hi,
Was just wondering if there is any way to access netcode.io from within a webassembly module within the browser?

Russell

unexisting client id

Hello!

I'm using a modified version of the unsupported Rust port, but maybe this does not matter. I successfully connected a server application to a separate client application (both in Rust) with netcode 1.01, they exchange information very well. It does not work for me using a browser, that connects to the very same server. Curiously the official test page https://netcode.redpoint.games/basic works.

What am I missing here? I installed the browser extension for Firefox and Chromium, my local test page delivers the error "unexisting client id xxxx", where xxxx varies, when connecting locally to my server.

Example:

This page tests netcode.io support in your browser.

Status of window.netcode: Available!

Status of netcode client: Error: unexisting client id: 443299215

Status of netcode connection: sendingConnectionResponse

Packets sent to server: ...

Last packet received from server: ..."

While the server has the following lines in the log:

TRACE: New data on listening socket
TRACE: Sending challenge packet
TRACE: Accepted connection V4(127.0.0.1:28356)

(nothing happens, I press f5 on the test page)

TRACE: New data on listening socket
TRACE: Client already exists, skipping socket creation
TRACE: Sending challenge packet
TRACE: Failed to hear from client 11184811, timed out
TRACE: Client disconnected 11184811
Server: ClientDisconnect '11184811'
TRACE: New data on listening socket
TRACE: Sending challenge packet
TRACE: Accepted connection V4(127.0.0.1:30939)

I tracked this error a while and it seems to come from the browser extension. The reason is that the server does not seem to receive the event ServerEvent::ClientConnect when I'm using the browser extension. Thus the client id is unexisting, but the connection seems to be established " Accepted connection V4(127.0.0.1:30939)".

What can be the cause that the server does not receive ClientConnect?

Ability to set protocol ID?

It'd be nice if I could pass a protocol ID as part of the create client method. While Javascript doesn't support 64-bit numbers properly, it could be passed as a string and then parsed in the standalone helper via ulong.TryParse. This way, apps built on this extension don't all end up using the same protocol ID.
It'd also help increase feature parity in my Unity wrapper, which currently allows assigning a custom protocol ID to UnityNetcode.ProtocolID, which is passed to created clients and servers but only when running in standalone mode (assigning a custom protocol ID and then starting a server breaks compatibility with WebGL builds, which do not have a custom protocol ID)

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.