WebSocket transport that only allows local connections

I have a crossbar instance running on my desktop, it has multiple transports that include 1. UDS over RawSocket 2. WebSocket over TCP, I want a a third transport that is a WebSocket transport but only listens on the localhost. Since my supposed client app is going to run inside a browser, I can’t connect to the UDS and need to use WebSocket (obviously).

Is there a way to create a websocket transport that only listens on the localhost ?

hey;) yeah, that is of course possible: use for interface. that will make it listen for only loopback IPv4 …

pls see https://crossbar.io/docs/Transport-Endpoints/#tcp-listening-endpoints

1 Like