Segmentation Fault #385
-
... |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments
-
The Readme says to install with |
Beta Was this translation helpful? Give feedback.
-
@hst-m Yeah i tried like a dozen of different versions, tried to reinstall node several times and it just does not work |
Beta Was this translation helpful? Give feedback.
-
you have provided no info on how what does not work
websocket client is not too hard just google it or ask if you need help |
Beta Was this translation helpful? Give feedback.
-
I don't ask you to teach me |
Beta Was this translation helpful? Give feedback.
-
I don't use Mac to check and this is not my repo but I am saying if you want to report something you should be using the easy Readme install and using one of the included examples to make sure you are doing it correctly, and report the specifics of your problem, not doing your custom compile and using someone else's old library for the example |
Beta Was this translation helpful? Give feedback.
-
@hst-m yeah) solution turned out to be embarrassingly simple |
Beta Was this translation helpful? Give feedback.
-
What was the solution? |
Beta Was this translation helpful? Give feedback.
-
@wthoutanymmries I have "segmentation fault 11". What is your solution? |
Beta Was this translation helpful? Give feedback.
-
@shaggyrec basic type checking. Make sure you pass strings not js objects |
Beta Was this translation helpful? Give feedback.
-
I made |
Beta Was this translation helpful? Give feedback.
-
Ah the OP was using Publish with an object instead of stringify it first, looks like the tutorial repo he tried to use was bad https://github.com/wthoutanymmries/uws_test/blob/master/src/server/server.js#L59 |
Beta Was this translation helpful? Give feedback.
-
I have added stricter type checks here cee33dc |
Beta Was this translation helpful? Give feedback.
-
That looks like silent fail, and extra processing for every publish call just to make sure called correctly, when can just follow docs correctly |
Beta Was this translation helpful? Give feedback.
-
They are not silent, https://github.com/uNetworking/uWebSockets.js/blob/master/src/AppWrapper.h#L338 There are now three checks that will throw exceptions with accurate info on wrong arguments passed. |
Beta Was this translation helpful? Give feedback.
@shaggyrec basic type checking. Make sure you pass strings not js objects