I am working on a web-socket project and i want web-socket cowboy server to listen to 8080 port but to forward messages to another port . Can I do that ? any help is appreciated
1
There are 1 answers
Related Questions in WEBSOCKET
- Resolving ElephantIO ServerConnectionFailureException: Error establishing connection to server
- Django socketio process
- How to decode audio stream using tornado websocket?
- Java and React WebSocket - Error Connection
- Socket.io nodejs server .NET connection
- Troubleshooting WebSocket 502 Error in Python Code
- Getting an error in Socket.io wordle project
- Best practices with realtime data / websockets. Send vs. revalidate data
- My socket.io web socket application is not sending data to some users
- Android 13 & 14 seem to close WebSocket connection, if i put app in background, after ~20s
- Audio bytes chunks getting corrupted during streaming using Django and Websockets
- Odoo live chat not working when using apache reverse proxy
- websocket Fatal error message stating "Failed to listen on tcp://0.0.0.0:8080: Address already in use
- Stomp connection using JWT token in Python
- Symphony Fintech (XTS) market-data socket data integration in PyQt6 using python3
Related Questions in ERLANG
- Using gleam, cannot import 'gleam/otp/process'
- Zig Concurrency Vs Erlang Concurrency, is Zig less efficient than Erlang?
- Creaating a new Key Value dict from previous dict
- How to execute an exit function before closing rebar3 shell?
- rebar3 does not compile anything in `src` directory
- Ejabberd Migration from 23 to 24
- How to use compiled erlang modules in an elixir project?
- ejabberd_sql:handle_reconnect/2:491 odbc connection failed ejabberd
- Lisp Flavored Erlang: Can't find include lib include/ltest-macros.lfe
- Signing key for RabbitMQ
- Rabbitmq fails to start and getting Erlang eaacces error
- Erlang: binary_to_term explanation
- How to extend emqx clientInfo to get more fields during HTTP Authorization
- Transforming `erl_parse:abstract_form()` to `erl_syntax:syntaxTree()`
- Who is the sender of Erlang's trace messages and what can I assume based on it?
Related Questions in COWBOY
- How to send MIME (Multipart Media Encapsulation) content type message using erlang HTTP method?
- Issue with running a compiled rebar3 erlang application with erl -pa
- Failed to start Ranch listener https_listener in ranch_ssl:listen, for reason eacces (permission denied) on Linux
- cowboy_websocket:websocket_send argument problem
- Cowboy 2.9.0 reverse proxy websockets
- How do I do something before the request dispatcher in cowboy?
- Erlang cowboy matching multiple routes
- Can I write Erlang modules in Phoenix?
- Creating a minimal Plug based http server in an exs file
- How do I get the cowboy ssl hello world example to run?
- Erlang Cowboy crashing. How to change logging levels?
- Cowboy framework: Sending HTTP calls
- How to create a keep-alive API endpoint with Cowboy in Elixir?
- How would I allow CORS with plug_cowboy in Elixir?
- Cowboy/Ranch kills handler process when client closes connection
Related Questions in ERLANG-PORTS
- Write a program to spawn a new process, which recieves X an integer and returns X+1. It exits if a non integer message is passed to it in erlang?
- Erlang echo server with python client is not echoing, python client not receiving response correctly
- Is it possible in Erlang to use open_port in Windows?
- How should Erlang filter the elements in the list, and add punctuation and []?
- How can I use send receive for multiple values in Erlang?
- emqx start command is not starting the mqtt broker
- How to reboot Erlang System automatically when there is a crash
- Error opening C++ shared library as Erlang port driver
- net_adm:ping failure very strange
- Controlling python GUI using erlang
- erlang gen_tcp connecting to erlang.org claims a 404
- Erlang server connecting with ports to send and receive a Json file to a Java application
- Starting ibrowse to support unlimited requests to the server
- In Erlang/Elixir, what are some use cases for opening a port with file descriptors?
- Erlang: how to know which process occupies network port and performs IO
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
what do you mean by forward messages to another port? cowboy's handler is handling the messages that arrive on your websocket. You can take those an redirect them anywhere you like. However I think what you are really after is a proxy that fronts your cowboy. If that is the case you should consider nginx as a front. Once you installed it you can provide this config:
this will enable you to run cowboy listening on any port you like (8080 in your example) while letting nginx take care of you SSL needs while forwarding websocket requests to cowboy. The client can connect @
If you do not need SSL address will be
and listen port in the config above needs to change to 80.