The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
107 stars 36 forks source link

socketPort is ignored when url is passed to FrappeProvider #38

Closed bastiaigner closed 11 months ago

bastiaigner commented 12 months ago

I'm speficiying both socketPort and url when using the FrappeProvider component. This leads to the undesired behaviour that the socketPort is ignored. The web socket tries to connect to the url passed.

Sample Code:

 <FrappeProvider url="http://erpnext14.localhost:8000" socketPort={"9000"}>
      <RouterProvider router={router} />
    </FrappeProvider>