Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WS doesn't work with re-natal and react native #361

Closed
Pederaugust opened this issue Jan 12, 2020 · 3 comments
Closed

WS doesn't work with re-natal and react native #361

Pederaugust opened this issue Jan 12, 2020 · 3 comments

Comments

@Pederaugust
Copy link

when setting :type :auto re-natal/react-native produces a cryptic error message

console.error: "ERROR [taoensso.sente:1090] - WebSocket error: [object Object]"

error
    YellowBox.js:59:8
dispatchEvent
    event-target.js:172:43
<unknown>
    WebSocket.js:286:10
emit
    EventEmitter.js:182:12
__callFunction
    MessageQueue.js:366:47
<unknown>
    MessageQueue.js:106:26
__guard
    MessageQueue.js:314:10
callFunctionReturnFlushedQueue
    MessageQueue.js:105:17
callFunctionReturnFlushedQueue
    [native code]:0

It does however not do that when setting to :ajax manually. This appears to be a sente problem not react native.

@evelant
Copy link

evelant commented May 18, 2020

There are a few PRs waiting to fix this but unfortunately they've gone unmerged for many months now.

There's a workaround here: #357 (comment)

@ptaoussanis
Copy link
Member

Should be fixed in current alpha, apologies for the delay.

@pushpankar
Copy link

pushpankar commented Nov 10, 2020

I am compiling react native component as npm module using shadow-cljs. And using the sente 1.16.0 but getting the same error

console.error: "ERROR [taoensso.sente:1090] - WebSocket error: [object Object]"

Is there a work around ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants