stompjs连接RabbitMQ实现echo server示例代码

代码语言:html

所属分类:其他

代码描述:stompjs连接RabbitMQ实现echo server示例代码

代码标签: stompjs 连接 RabbitMQ echo server 示例 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/stomp.min.js"></script>

    <title>RabbitMQ Web STOMP Examples : Echo Server</title>
    <style>
        .box {
              width: 440px;
              float: left;
              margin: 0 20px 0 20px;
          }
          .box div, .box input {
              border: 1px solid;
              -moz-border-radius: 4px;
              border-radius: 4px;
              width: 100%;
              padding: 5px;
              margin: 3px 0 10px 0;
          }
          .box div {
              border-color: grey;
              height: 300px;
              overflow: auto;
          }
          div code {
              display: block;
          }
          #first div code {
              -moz-border-radius: 2px;
              border-radius: 2px;
              border: 1px solid #eee;
              margin-bottom: 5px;
          }
          #second div {
              font-size: 0.8em;
          }
    </style>
</head>

<body>
  

    <div id="first" class="box">
        <h2>Received</h2>
        <div></div>
        <form><input autocomplete="off" value="Type here..."></input>
        </form>
    </div>

    <div id="second" class="box">
        <h2>Logs</h2>
        <div></div>
    </div&.........完整代码请登录后点击上方下载按钮下载查看

网友评论0