Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coder/websocket
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: aperturerobotics/go-websocket
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 46 files changed
  • 1 contributor

Commits on Feb 28, 2026

  1. fix: avoid importing net/http on wasm

    Using goweight: https://github.com/paralin/goweight
    
    GOOS=js GOARCH=wasm goweight | less
    
    Without this change:
    
      7.9 MB runtime
      6.6 MB net/http
      3.1 MB net
      3.0 MB crypto/tls
      2.0 MB reflect
      1.4 MB math/big
      1.3 MB crypto/x509
      935 kB os
      ...
    
    With this change:
    
      7.9 MB runtime
      3.1 MB net
      2.0 MB reflect
      935 kB os
      ...
    
    Slight modifications to avoid importing net/http reduce the binary size significantly.
    
    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    9fe1a2e View commit details
    Browse the repository at this point in the history
  2. fix: function labels in asm

    fixes go vet ./...
    
    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    a9aa3ca View commit details
    Browse the repository at this point in the history
  3. chore: bump go to 1.25

    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    e505e78 View commit details
    Browse the repository at this point in the history
  4. chore: add renovate.json

    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    4b6d8dd View commit details
    Browse the repository at this point in the history
  5. refactor: hard-fork repo for wasm-optimized fork

    This is due to the following PR rejection:
    
    #449
    
    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    35e3795 View commit details
    Browse the repository at this point in the history
  6. .github: update ci and ignore dev branch

    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    02959a8 View commit details
    Browse the repository at this point in the history
  7. chore: update go.mod go.sum

    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Feb 28, 2026
    Configuration menu
    Copy the full SHA
    c5f8823 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2026

  1. chore: add gitSignOff preset to renovate config

    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Mar 29, 2026
    Configuration menu
    Copy the full SHA
    74dbfb8 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2026

  1. fix(js): drop reflect from wsjs message type panic

    Signed-off-by: Christian Stewart <[email protected]>
    paralin committed Jun 19, 2026
    Configuration menu
    Copy the full SHA
    a096778 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2026

  1. fix(wasm): normalize browser-forbidden close codes (#2)

    The browser WebSocket API rejects reserved protocol close codes, so
    ordinary CloseNow and error cleanup could leave their sockets open.
    Use normal wire closure for these codes while preserving the requested
    local close error.
    
    Signed-off-by: Christian Stewart <[email protected]>
    paralin authored Sep 10, 2026
    Configuration menu
    Copy the full SHA
    cf6ee68 View commit details
    Browse the repository at this point in the history
  2. fix(wasm): return from error events before waiting for closure (#3)

    The browser error callback called Close and waited for a close event.
    That event cannot run until the callback returns, so cancellation and
    connection failures could deadlock the JavaScript event loop.
    
    Publish the failed connection state directly and let the subsequent close
    event release its listeners.
    
    Signed-off-by: Christian Stewart <[email protected]>
    paralin authored Sep 10, 2026
    Configuration menu
    Copy the full SHA
    e26e01d View commit details
    Browse the repository at this point in the history
  3. fix(wasm): close locally without waiting for the peer (#4)

    CloseNow previously waited for the browser close handshake, delaying
    shutdown until an unresponsive peer timed out. Publish local closure
    immediately while the browser finishes its wire handshake.
    
    Signed-off-by: Christian Stewart <[email protected]>
    paralin authored Sep 10, 2026
    Configuration menu
    Copy the full SHA
    349504d View commit details
    Browse the repository at this point in the history
Loading