Repository navigation
Segmentation Fault #385
Replies: 15 comments
|
The Readme says to install with |
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 |
|
I don't ask you to teach me |
|
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 |
|
@hst-m yeah) solution turned out to be embarrassingly simple |
|
What was the solution? |
|
@wthoutanymmries I have "segmentation fault 11". What is your solution? |
|
@shaggyrec basic type checking. Make sure you pass strings not js objects |
|
I made |
|
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 |
|
That looks like silent fail, and extra processing for every publish call just to make sure called correctly, when can just follow docs correctly |
|
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. |
@shaggyrec basic type checking. Make sure you pass strings not js objects