Skip to content

Transport timeout too short cause Transport close.. #403

@binlaniua

Description

@binlaniua

my connect code

var socket;
if (that.isIE9()) {
	socket =  new SockJS(url)
} else {
	socket =  new SockJS(url, null, {transports:'websocket'})
}

i found code at "SockJS.prototype._connect"

var timeoutMs = (this._rto * Transport.roundTrips) || 5000;
this._transportTimeoutId = setTimeout(this._transportTimeout.bind(this), timeoutMs);

i log the timeoutMs is 698

image

in "websocket" my server reponse may be than this time... how to change it , did it has a setting ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions