Skip to content

Support websocket on supersim L2s #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OscBacon opened this issue Apr 7, 2025 · 6 comments · Fixed by #379 or #382
Closed

Support websocket on supersim L2s #374

OscBacon opened this issue Apr 7, 2025 · 6 comments · Fixed by #379 or #382
Assignees

Comments

@OscBacon
Copy link

OscBacon commented Apr 7, 2025

Support websocket for op chain a and op chain b.
Only the L1 currently supports websocket

@fainashalts
Copy link
Collaborator

Hi @OscBacon I've added this issue to our backlog and we'll keep you posted! Thanks for bringing it to our attention.

@OscBacon
Copy link
Author

OscBacon commented Apr 7, 2025

Hey @fainashalts any chance you could prioritize this more please?
My project is part of the superchain incubator and this is forcing us for now to stay on three anvil chains since we can't test subscribing to events.
Since supersim is using anvil under the hood it should be a matter of properly exposing both http and ws RPCs

@fainashalts
Copy link
Collaborator

@OscBacon yes sorry I wasn't more clear! our team will talk about this later today and figure out priority. 😄 backlog is just a pit stop. thank you for clarifying the need, very helpful for our discussion.

@tremarkley
Copy link
Contributor

@OscBacon I believe that websockets should work for all the supersim chains. Do you mind sending me some steps I can follow to reproduce this issue?

@OscBacon
Copy link
Author

OscBacon commented Apr 8, 2025

Hey @tremarkley for sure!

supersim
# In another shell
wscat -c localhost:9546

wscat is a nifty too to send out requests to a WS server, like cat
Install with npm i -g wscat

For comparison, run wscat -c localhost:8545 to connect to the L1.

As you will see, expected behavior:

wscat -c localhost:8545
Connected (press CTRL+C to quit)

but with the L2:

wscat -c localhost:9546
error: Unexpected server response: 400

@tremarkley
Copy link
Contributor

@OscBacon this fix is included on supersim version 0.1.0-alpha.48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants