Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: github/stable-socket

v1.1.1

14 Oct 18:50
37641a2
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

  • Updated dependencies
  • Publish with provenance by@dgreif in#36

Full Changelog:v1.1.0...v1.1.1

Contributors

  • @dgreif
dgreif
Assets2
Loading

v1.1.0

22 Oct 16:55
b345902
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

  • feat: add a new configurable reconnectWindow by@keithamus in#3

Full Changelog:v1.0.0...v1.1.0

Contributors

  • @keithamus
keithamus
Loading

1.0.0

14 Oct 16:48
v1.0.0
This tag was signed with the committer’sverified signature.
dgraham David Graham
GPG key ID:AA9405DCE2E0D208
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

A stable release with no changes since 0.1.2.

Loading

0.1.1

13 Jul 18:16
v0.1.1
This tag was signed with the committer’sverified signature.
dgraham David Graham
GPG key ID:AA9405DCE2E0D208
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

StableSocket

A web socket that reconnects.

Installation

$ npm install @github/stable-socket

Usage

import{StableSocket}from'@github/stable-socket'constdelegate={socketDidOpen(socket:Socket){// Socket is ready to write.socket.send('Hello')},socketDidClose(socket:Socket,code?:number,reason?:string){// Socket closed and will retry the connection.},socketDidFinish(socket:Socket){// Socket closed for good and will not retry.},socketDidReceiveMessage(socket:Socket,message:string){// Socket read data from the connection.}}constpolicy={timeout:4000,attempts:Infinity,maxDelay:60000}constsocket=newStableSocket('wss://live.example.com',delegate,policy)socket.open()
Loading

[8]ページ先頭

©2009-2025 Movatter.jp