You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I'm integrating this library to connect to moonraker websockets. Now I find that moonrakers ws implementation is a little picky about null as params.
Hello I'm integrating this library to connect to moonraker websockets. Now I find that moonrakers ws implementation is a little picky about null as params.
Sending a package as will work as expected.
however, this library will sent null if you do a call without params. Which for this method is what i need.
Which result in a
{"code": -32602, "message": "Invalid params:"}
I verified params: null is the issue as i changed this line to return undefined (meaning it will not get sent)
Now my question. Can we change the null to undefined?
As it stands tis lib is not compatible with moonraker rpc json.
ps. I also try to sent [] or {} as params.
The text was updated successfully, but these errors were encountered: