-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Server has websocket.binarytype set to arraybuffer, not nodebuffer #718
Comments
@akwirick Can you share the log / error that you were seeing? Which node version do you use? |
Here's a snippet from my logs when the binarytype is set to
Basically, the |
For more context, this is running on a fastify server operating in http1.1 mode. Everything else seems to work fine there, just this one little unexpected type issue. |
ah, this probably happened because you are using ws@^8 already, while we were still at ^7. Just weird that I didn't see this, because I actually upgraded this week 🤔 anyway, will merge it. thx! |
I saw an issue on my logs where the
ws
library was complaining about a type mismatch when emitting messages. Confirmed that patching the websocket binarytype tonodebuffer
fixes the underlying issues. Basically, sincews
is both a browser and node library, we're inadvertently opting in to browser behavior on the server and that's no bueno.See
hocuspocus/packages/server/src/Connection.ts
Line 68 in f584cb7
I can probably put together a PR next week, but it's Friday night local time and I'm not gonna get to it til after the weekend.
The text was updated successfully, but these errors were encountered: