Skip to content

Reading incoming data frame with extension enabled #208

@wen-git-acc

Description

@wen-git-acc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions