Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading incoming data frame with extension enabled #208

Open
wen-git-acc opened this issue Jan 27, 2025 · 1 comment
Open

Reading incoming data frame with extension enabled #208

wen-git-acc opened this issue Jan 27, 2025 · 1 comment

Comments

@wen-git-acc
Copy link

wen-git-acc commented Jan 27, 2025

Hi there,

I am using this library for my websocket connection and establish connection with the server with deflate header. Doing so, I am facing problem with reading the compressed data from the server. Is there anyway to read the server data with when establishing connection with deflate (permessage-deflate) extension?

flateOption := httphead.Option{
		Name:       wsflate.DefaultParameters.Option().Name,
		Parameters: wsflate.DefaultParameters.Option().Parameters,
	}
	source.dialer.Extensions = []httphead.Option{
		flateOption,
	}

I am using wsutil.ReadServerData(conn) to read server data.

@cristaloleg
Copy link
Collaborator

Hey, what error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants