Skip to content

Scripting for Websocket #559

@NghiaTranUIT

Description

@NghiaTranUIT

Description

ProxymanApp/Proxyman#2530

Acceptance Criteria

Unit Tests

  • Write a Script to map Localhost websocket to Production: ws://localhost:3000 to https://wss.httpbin-proxyman.xyz -> Send some websocket message -> Verify that it's from the production, not from a localhsot server
  • Write a script to map Production websocket to https://wss.httpbin-proxyman.xyz to ws://localhost:3000 (Make sure we have a echo websocket on localhost for testing) -> Send some websocket message -> Verify that it's from the localhost, not from the production server
  • Write a new echo websocket on localhost that the first websocket message will contain
- url
- request's headers
  • Write a Script to modify some Headers and Query of the Websocket -> Verify the first websocket message -> It's the same URL, Query and header that we modify

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions