mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
14 lines
250 B
JavaScript
14 lines
250 B
JavaScript
/* REPLACE
|
|
new WebSocketConstructor
|
|
*/
|
|
new ((() => {
|
|
if (api.transport === "wisp") {
|
|
return WispWebSocket;
|
|
}
|
|
else if (api.transport === "wsproxy") {
|
|
return WebSocket;
|
|
}
|
|
else { //custom transports
|
|
return api.transport;
|
|
}
|
|
})())
|