Giter Site home page Giter Site logo

kalm / kalm.js Goto Github PK

View Code? Open in Web Editor NEW
210.0 6.0 9.0 402 KB

The socket manager

Home Page: http://kalm.js.org

License: Other

JavaScript 20.40% TypeScript 79.03% Shell 0.57%
socket network multiplexing tcp udp ipc websockets webrtc hacktoberfest

kalm.js's People

Contributors

fed135 avatar monkeywithacupcake avatar richardlitt avatar ruyadorno 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

kalm.js's Issues

Handle multiple listeners per server instances

Goal

Users should be able to listen for multiple ports and multiple protocols when creating servers.

Acceptance criteria:

A user could connect via Websocket to a server also listening for TCP events. Broadcasting emits to all clients, regardless of protocol.

IPC Example?

Is there an example of using IPC? Also, does it work across platforms like windows?

Own framing?

Atm im trying to write a client for a game (TCP) with a special structure.

[Header]
- key<int8>
- reserved<int8>
- packetSize<int16le>
- encrypted<int8>
[Body]
- body<buffer[packetSize - 5]>

For me it looks like Kalm uses an own hardcoded framing.
Would it be possible to make that configurable?
Or is Kalm supposed to just connect with other Kalm endpoints?

Support for QUIC

Once the standard is finalized and node implementation is available, add QUIC/WebTransport support

When you provide a large value to client.write, it is received as an array.

Sometimes,

client.write('test.data',{result:{type:'string', value:'<some large base64 string>'}});

Doing the above results in the loss of hierarchy of the object, and instead, the data is received as an array of bytes.

Sometimes the received object would is:

{result:{type:'string', value:'<some large base64 string>'}}

and sometimes it is:

[12,16,114,<numbers like that >]

What must be wrong? Is it returning a buffer-like object when the response is too long?

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.