Code Monkey home page Code Monkey logo

wasmws's People

Contributors

tarndt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wasmws's Issues

How to allow a request from http://localhost:5173 when creating gRPC inside WebAssembly (WASM)

I am currently trying to create a gRPC application inside WebAssembly (WASM) using your library. However, I am encountering an issue when attempting to allow a request from http://localhost:5173/.

I am receiving the following error message:
"WebSockListener: ERROR: Could not accept websocket from "[::1]:50703"; Details: failed to accept websocket connection: request Origin "http://localhost:5173/" is not authorized for Host "localhost:8888"."

I would like to know how to allow a request from http://localhost:5173/ to connect with the host "localhost:8888". Are there any specific configurations I need to make or any particular steps I should follow?
Thanks.

go v1.14 support

compile issue:
../../../go/pkg/mod/github.com/tarndt/[email protected]/websock_js.go:33:13: invalid operation: newBlob == jsUndefined (struct containing [0]func() cannot be compared) ../../../go/pkg/mod/github.com/tarndt/[email protected]/websock_js.go:39:46: invalid operation: testBlob.Get("arrayBuffer") != jsUndefined (struct containing [0]func() cannot be compared) ../../../go/pkg/mod/github.com/tarndt/[email protected]/websock_js.go:40:26: invalid operation: testBlob.Get("stream") != js.Undefined() (struct containing [0]func() cannot be compared)

golang developers specially has been added uncomparable state:
// Value represents a JavaScript value. The zero value is the JavaScript value "undefined". // Values can be checked for equality with the Equal method. type Value struct { _ [0]func() // uncomparable; to make == not compile ref ref // identifies a JavaScript value, see ref type gcPtr *ref // used to trigger the finalizer when the Value is not referenced any more }

Run local websocket for tests

Run local websocket for tests and remove dependency on external service. Recently tests had to be updated to use echo.websocket.events rather than demos.kaazing.com/echo due to that service being shut down. It would be ideal to run our own echo server locally to avoid this problem and make the tests not rely on internet connectivity.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.