PrivateRookie / ws-tool

High perform & easy to use websocket client/server
Apache License 2.0
194 stars 24 forks source link

Help wanted: Create Node.js Bindings #31

Open mkadirtan opened 1 year ago

mkadirtan commented 1 year ago

Hi there, I am trying to create Node.js bindings for this library. Websockets are in high demand in Node.js & Javascript environments, so an npm package for this package would be really helpful. Currently, uWebsockets is the fastest package in javascript environment, but this package can become a good competitor.

I tried to create bindings using napi-rs package template but got stuck with the Rust code. If the repo owner or someone knowledgable in Rust can help me, we can achieve this.

I managed to create a websocket connection using this and napi-rs but creating an API compatible with other websocket packages looks more challenging.

So, feel free to reply here or reach me at muhammedkadirtan@gmail.com if you want to help me.

PrivateRookie commented 1 year ago

It is a good attempt to bring this library into the nodejs ecosystem, but I am not very familiar with napi-rs, I may need to spend some time to get familiar with napi-rs and refer to the API of uWebsocket in nodejs