support handling any messages
ebebbington opened this issue · 1 comments
ebebbington commented
handlemessage(msg => {
...
const evt = new customevent({
detail {
id: ...,
data: msg
string
json
binary
ebebbington commented
we wont be able to support binary, because the way we need to stringify and parse the message(s), leaving the typed array a client sends, becoming an object when the server parses it
Whilst a user could try convert it, it's a pain in the arse. Sending binary over the wire is a good call, but if someone wants to do that, i'd suggest using a native ws server and client