rsocket / rsocket-js

JavaScript implementation of RSocket

Home Page:https://github.com/rsocket/rsocket-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RSocketWebSocketClient is not a constructor

dev-morph opened this issue · comments

First of all, Thanks for your nice work!
But when I follow your guide, I got in trouble.

Expected Behavior

I followed example page code of Link
I thought I could easily connect RSocketServer.

Actual Behavior

But I got RSocketWebSocketClient is not a constructor ERROR, even though I just copy and paste guide code.
I searched it, I found I should downgrade to ^0.0.27. both of rsocket-core and rsocket-websocket-client.
and with 0.0.27 version, it works like a charm!
maybe guide is only for version 0.0.27? I am little bit confused.

Steps to Reproduce

After npm install rsocket-core rsocket-websocket-client;
it will install 1.0.0-alpha.3.
and then copy paste guide code.

Hey @dev-morph thanks for the heads up. We'll update the guide to help avoid this issue. With that being said, I would recommend using the latest alpha version if possible. We likely won't be supporting the 0.27 versions long term once the 1.0.0 versions land and the 1.0.0 alpha versions are not receiving large breaking changes at the moment so they should be relatively safe to begin learning, especially if this is your first introduction to RSocket-js.

The best way to learn the 1.0.0 versions is currently going to be through the examples under packages/RSocket-examples.