# How to integrate Julia with a HTML web page?

**URL:** <https://discourse.julialang.org/t/how-to-integrate-julia-with-a-html-web-page/48019>\
**Category:** New to Julia\
**Tags:** question, package, http\
**Created:** [October 9, 2020, 8:00am UTC](https://discourse.julialang.org/t/how-to-integrate-julia-with-a-html-web-page/48019 "2020-10-09T08:00:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [October 9, 2020, 10:29am UTC](https://discourse.julialang.org/t/how-to-integrate-julia-with-a-html-web-page/48019/2 "2020-10-09T10:29:20Z")

</div>

I believe you want:

[https://github.com/JuliaWeb/WebSockets.jl](https://github.com/JuliaWeb/WebSockets.jl)

(or one of the alternatives mentioned there, OR this latest package):

[https://github.com/citkane/SimpleWebsockets.jl](https://github.com/citkane/SimpleWebsockets.jl)

[EDIT: It used to be called Websocket.jl when I originally wrote this post, was renamed, see link at the bottom.]

I noticed the latter package registered a few days ago, but now when looking into it, it seemed to have years of development, and I was confusingly looking at the former package…

I do not know too much about these packages, or the standardized API, but I believe it’s exactly what you’re looking for. You would runs some JavaScript code in the web browser to access the Julia websocket. In general you can compile Julia code to JavaScript too, with JSExpr.jl, but I’m not sure if it helps with this, at least that would be optional.

> [@\[ANN\] Websocket - High level API for Server and Client with documentation](https://discourse.julialang.org/t/ann-websocket-high-level-api-for-server-and-client-with-documentation/47957):
>
> Websocket.jl [[image]](https://citkane.github.io/Websocket.jl/stable) [[image]](https://citkane.github.io/Websocket.jl/dev)[Github Code](https://github.com/citkane/Websocket.jl)Why another Websocket package? The existing Julia websocket solutions are in various states of development and lack comprehensive high level API’s comparable to offerings in other languages such as JS and Python. For this reason I have ported the architecture of the popular Node.js [websocket](https://www.npmjs.com/package/websocket) package into Julia. Basic usage server: using Websocket server = WebsocketServer() ended = Condition() listen(server, :client) do client listen(client, :me…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-integrate-julia-with-a-html-web-page/48019)._
