kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
764 stars 273 forks source link

Exclude origin from header #132

Open juppjupp opened 6 years ago

juppjupp commented 6 years ago

Hi! Is there anyway to exclude origin from header? The LG tv websocket Im trying to connect to does not support origin in header. Will just get error "invalid origin".

kerryjiang commented 6 years ago

Probably, they just need a specific origin value? You can pass it from the constructor.

juppjupp commented 6 years ago

Yes i know that i can pass origin from constructor. But the problem is that they dont want origin as header at all :) Therefore i want to exclude it. So is there any possibility for you to add a way to exclude it?