EpicGamesExt / PixelStreamingInfrastructure

The official Pixel Streaming servers and frontend.
MIT License
194 stars 72 forks source link

How can I force close peer connection/data channel? #202

Closed bakermanbrian closed 1 month ago

bakermanbrian commented 1 month ago

Component your question relates to

Question

I have figured out how to force close WebRTC connections server-side and require that user to send an updated auth token to reconnect. However, how can I force close an existing peer connection/data channel, not from the frontend?

lukehb commented 1 month ago

On the signalling server side you could terminate the websocket connect - that will trigger it to close. Is that workable in your case?

lukehb commented 3 weeks ago

There is also the kick blueprints that can do this from the UE side.

While these are deprecated in UE 5.4 the plan is to bring them back.

If you are using 5.4:

image image